com.dynalivery.harmoni
Class HarmoniServiceError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dynalivery.harmoni.HarmoniError
|
+--com.dynalivery.harmoni.HarmoniServiceError
- Direct Known Subclasses:
- HarmoniAPIError, HarmoniConfigServerError, HarmoniGatewayError, HarmoniServerError
- public class HarmoniServiceError
- extends HarmoniError
HarmoniServiceError 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 |
HarmoniServiceError(int code,
java.lang.String text)
Construct a HarmoniServiceError with the given code and text. |
HarmoniServiceError(int code,
java.lang.String text,
java.lang.String kind)
|
HarmoniServiceError(java.lang.String text)
Construct a HarmoniServiceError 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 |
HarmoniServiceError
public HarmoniServiceError(int code,
java.lang.String text)
- Construct a HarmoniServiceError with the given code and text.
HarmoniServiceError
public HarmoniServiceError(int code,
java.lang.String text,
java.lang.String kind)
HarmoniServiceError
public HarmoniServiceError(java.lang.String text)
- Construct a HarmoniServiceError with the given text and default code.
Report
public void Report()
- Report a server error in the client.
- Overrides:
- Report in class HarmoniError
Throw
public void Throw()
throws HarmoniServiceError
- Throw this error to a handler in the client.
- Overrides:
- Throw in class HarmoniError
- Tags copied from class: HarmoniError
- Throws:
- HarmoniError - The error that is to be thrown.