com.dynalivery.pcre
Class PCREServerError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.dynalivery.pcre.PCREError
                    |
                    +--com.dynalivery.pcre.PCREServiceError
                          |
                          +--com.dynalivery.pcre.PCREServerError

public class PCREServerError
extends PCREServiceError

PCREServerError indicates an error in connecting to the server, an error in the CORBA system or similar non-recoverable errors. If a PCRE call throws a PCREServerError, the connection to the server may be in an unknown state. For most applets/applications, a thrown PCREServerError indicates a fatal error condition.

See Also:
Serialized Form

Fields inherited from class com.dynalivery.pcre.PCREError
errorCode, errorKind, errorText
 
Constructor Summary
PCREServerError(int code, java.lang.String text)
          Construct a PCREServerError with the given code and text.
PCREServerError(java.lang.String text)
          Construct a PCREServerError with the given text and default code.
 
Method Summary
 void Report()
          Report a server error in the client.
static void Report(java.lang.Exception ex)
          Classify and report an exception thrown from a CORBA call This method attempts to determine the type of an exception, and report it.
static void Report(int code, java.lang.String text)
          Generate and report a server error in the client.
static void Report(java.lang.String text)
          Generate and report a server error in the client.
 void Throw()
          Throw this error to a handler in the client.
static void Throw(java.lang.Exception ex)
          Analyse a CORBA exception thrown by a PCREServer API call and throw a corresponding PCREServerError.
static void Throw(int code, java.lang.String text)
          Generate and throw a server error in the client.
static void Throw(java.lang.String text)
          Generate and throw a server error in the client.
 
Methods inherited from class com.dynalivery.pcre.PCREError
getCode, getKind, getText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PCREServerError

public PCREServerError(int code,
                       java.lang.String text)
Construct a PCREServerError with the given code and text.
Parameters:
code - The error code to use.
text - The error text to use.

PCREServerError

public PCREServerError(java.lang.String text)
Construct a PCREServerError with the given text and default code.
Parameters:
text - The error text to use.
Method Detail

Report

public void Report()
Report a server error in the client.
Overrides:
Report in class PCREServiceError

Report

public static void Report(int code,
                          java.lang.String text)
Generate and report a server error in the client.
Parameters:
text - The text to use for the error report
code - The error code to use for the errror report

Report

public static void Report(java.lang.Exception ex)
Classify and report an exception thrown from a CORBA call This method attempts to determine the type of an exception, and report it.
Parameters:
ex - The exception to classify and report.

Report

public static void Report(java.lang.String text)
Generate and report a server error in the client.
Parameters:
text - The text to use for the error report

Throw

public void Throw()
           throws PCREServerError
Throw this error to a handler in the client.
Overrides:
Throw in class PCREServiceError
Tags copied from class: PCREError
Throws:
PCREError - The error that is to be thrown.

Throw

public static void Throw(int code,
                         java.lang.String text)
                  throws PCREServerError
Generate and throw a server error in the client.
Parameters:
text - The error description that is to be thrown with the exception
code - The error code that is to be thrown with the exception

Throw

public static void Throw(java.lang.Exception ex)
                  throws PCREServerError
Analyse a CORBA exception thrown by a PCREServer API call and throw a corresponding PCREServerError.
Parameters:
ex - The CORBA exception.

Throw

public static void Throw(java.lang.String text)
                  throws PCREServerError
Generate and throw a server error in the client.
Parameters:
text - The error description that is to be thrown with the exception