public class MOMException
extends java.lang.Exception
PubSubFactory,
ExceptionListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_LOST_EXCEPTION
Field CONNECTION_LOST.
|
static int |
CONNECTION_RECOVERED_EXCEPTION
Field CONNECTION_RECOVERED.
|
static int |
GENERIC_EXCEPTION
Field GENERIC_EXCEPTION
|
| Constructor and Description |
|---|
MOMException()
Creates an empty MOMException.
|
MOMException(java.lang.String s)
Creates a MOMException setting the text.
|
MOMException(java.lang.String s,
int code)
Creates a MOMException setting the text and the exception code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
testException(int code)
Check the exception type.
|
public static final int GENERIC_EXCEPTION
public static final int CONNECTION_LOST_EXCEPTION
public static final int CONNECTION_RECOVERED_EXCEPTION
public MOMException()
public MOMException(java.lang.String s)
s - the String value of the textpublic MOMException(java.lang.String s,
int code)
s - the String value of the textcode - the exception code