Public Member Functions | |
MOMException () | |
MOMException (String s) | |
MOMException (String s, int code) | |
boolean | testException (int code) |
Static Public Attributes | |
final int | GENERIC_EXCEPTION = 0 |
final int | CONNECTION_LOST_EXCEPTION = 1 |
final int | CONNECTION_RECOVERED_EXCEPTION = 2 |
Private Attributes | |
int | exceptionCode = GENERIC_EXCEPTION |
|
Creates an empty MOMException. |
|
Creates a MOMException setting the text.
|
|
Creates a MOMException setting the text and the exception code.
|
|
Check the exception type. Utilized to check the exception type from the onException handler.
|
|
Field CONNECTION_LOST. A MOMException with testException(MOMException.CONNECTION_LOST_EXCEPTION) == true means that a break in the connection to the broker has been detected. |
|
Field CONNECTION_RECOVERED. A MOMException with testException(MOMException.CONNECTION_RECOVERED) == true means that a reconnection to the broker has been detected. |
|
|
|
Field GENERIC_EXCEPTION |