com.dynalivery.pcre
Class PCREServiceError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dynalivery.pcre.PCREError
|
+--com.dynalivery.pcre.PCREServiceError
- Direct Known Subclasses:
- PCREAPIError, PCREConfigServerError, PCREGatewayError, PCREServerError
- public class PCREServiceError
- extends PCREError
PCREServiceError is a base-class for service-related errors. Clients
may trap such errors with a single catch-clause and call report
or throw. The former calls the correct derived-class reporting
method, and the latter propgates the error.
- See Also:
- Serialized Form
|
Constructor Summary |
PCREServiceError(int code,
java.lang.String text)
Construct a PCREServiceError with the given code and text. |
PCREServiceError(int code,
java.lang.String text,
java.lang.String kind)
|
PCREServiceError(java.lang.String text)
Construct a PCREServiceError with the given text and default code. |
|
Method Summary |
void |
Report()
Report a server error in the client. |
void |
Throw()
Throw this error to a handler in the client. |
| 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 |
PCREServiceError
public PCREServiceError(int code,
java.lang.String text)
- Construct a PCREServiceError with the given code and text.
PCREServiceError
public PCREServiceError(int code,
java.lang.String text,
java.lang.String kind)
PCREServiceError
public PCREServiceError(java.lang.String text)
- Construct a PCREServiceError with the given text and default code.
Report
public void Report()
- Report a server error in the client.
- Overrides:
- Report in class PCREError
Throw
public void Throw()
throws PCREServiceError
- Throw this error to a handler in the client.
- Overrides:
- Throw in class PCREError
- Tags copied from class: PCREError
- Throws:
- PCREError - The error that is to be thrown.