com.mobileapps.pcre
Class PCREClientError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.mobileapps.pcre.PCREError
                    |
                    +--com.mobileapps.pcre.PCREClientError

public class PCREClientError
extends PCREError

See Also:
Serialized Form

Fields inherited from class com.mobileapps.pcre.PCREError
errorCode, errorKind, errorText
 
Constructor Summary
PCREClientError(int code, java.lang.String text)
          Construct a PCREClientError with the given code and text.
PCREClientError(java.lang.String text)
          Construct a PCREClientError with the given text and default code.
 
Method Summary
 void Report()
          Report a PCREClientError in the client and terminate.
static void Report(int code, java.lang.String text)
          Generate and report a PCREClientError in the client.
static void Report(java.lang.String text)
          Generate and report a PCREClientError in the client.
 void Throw()
          Throw this error to a handler in the client.
static void Throw(int code, java.lang.String text)
          Generate and throw a client error in the client.
static void Throw(java.lang.String text)
          Generate and throw a client error in the client.
 
Methods inherited from class com.mobileapps.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

PCREClientError

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

PCREClientError

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

Report

public void Report()
Report a PCREClientError in the client and terminate.
Overrides:
Report in class PCREError

Report

public static void Report(int code,
                          java.lang.String text)
Generate and report a PCREClientError 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.String text)
Generate and report a PCREClientError in the client.
Parameters:
text - The text to use for the error report

Throw

public void Throw()
           throws PCREClientError
Throw this error to a handler in the client.
Throws:
PCREClientError - This is the exception that is thrown.
Overrides:
Throw in class PCREError

Throw

public static void Throw(int code,
                         java.lang.String text)
                  throws PCREClientError
Generate and throw a client 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
Throws:
PCREClientError - This is the exception that is thrown, with the text, and error code specified.

Throw

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