com.dynalivery.harmoni
Class HarmoniClientError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dynalivery.harmoni.HarmoniError
|
+--com.dynalivery.harmoni.HarmoniClientError
- public class HarmoniClientError
- extends HarmoniError
- See Also:
- Serialized Form
|
Constructor Summary |
HarmoniClientError(int code,
java.lang.String text)
Construct a HarmoniClientError with the given code and text. |
HarmoniClientError(java.lang.String text)
Construct a HarmoniClientError with the given text and default code. |
|
Method Summary |
void |
Report()
Report a HarmoniClientError in the client and terminate. |
static void |
Report(int code,
java.lang.String text)
Generate and report a HarmoniClientError in the client. |
static void |
Report(java.lang.String text)
Generate and report a HarmoniClientError 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 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 |
HarmoniClientError
public HarmoniClientError(int code,
java.lang.String text)
- Construct a HarmoniClientError with the given code and text.
- Parameters:
code - The error codetext - The error text
HarmoniClientError
public HarmoniClientError(java.lang.String text)
- Construct a HarmoniClientError with the given text and default code.
- Parameters:
text - The error text
Report
public void Report()
- Report a HarmoniClientError in the client and terminate.
- Overrides:
- Report in class HarmoniError
Report
public static void Report(int code,
java.lang.String text)
- Generate and report a HarmoniClientError in the client.
- Parameters:
text - The text to use for the error reportcode - The error code to use for the errror report
Report
public static void Report(java.lang.String text)
- Generate and report a HarmoniClientError in the client.
- Parameters:
text - The text to use for the error report
Throw
public void Throw()
throws HarmoniClientError
- Throw this error to a handler in the client.
- Overrides:
- Throw in class HarmoniError
- Throws:
- HarmoniClientError - This is the exception that is thrown.
Throw
public static void Throw(int code,
java.lang.String text)
throws HarmoniClientError
- Generate and throw a client error in the client.
- Parameters:
text - The error description that is to be thrown with the exceptioncode - The error code that is to be thrown with the exception- Throws:
- HarmoniClientError - This is the exception that is thrown, with the text, and error code specified.
Throw
public static void Throw(java.lang.String text)
throws HarmoniClientError
- Generate and throw a client error in the client.
- Parameters:
text - The error description that is to be thrown with the exception- Throws:
- HarmoniClientError - This is the exception that is thrown, with the text specified.