public class RequestException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
EXTENSION_NOT_ALLOWED
Indicates an attempt to share subscription requests on the Item when
the new schema extends the current one and the Item is not a MERGE Item.
|
static int |
FIELD_NOT_FOUND
Indicates an incorrect unsubscribe request, in which some of the
supplied fields are not currently subscribed for the supplied listener.
|
static int |
ITEM_NOT_FOUND
Indicates an incorrect unsubscribe request, in which the supplied
Item is not currently subscribed.
|
static int |
LISTENER_NOT_FOUND
Indicates an incorrect unsubscribe request, in which the supplied
listener is not currently subscribed.
|
static int |
REENTRANCE
Indicates a reentrant subscription or unsubscription request on the
Item.
|
static int |
REQUIRED_FIELD_MISSING
Indicates an incorrect subscribe or unsubscribe request, by which
a required field is no longer subscribed.
|
static int |
SCHEMA_ERROR
Indicates an incorrect unsubscribe request, in which the supplied
schema doesn't match with the currently subscribed Fields for the
supplied listener.
|
Constructor and Description |
---|
RequestException(int errorCode)
Used by Lightstreamer to create a RequestException.
|
RequestException(int errorCode,
java.lang.String extraMsg)
Used by Lightstreamer to create a RequestException.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code for the error condition.
|
public static final int REENTRANCE
public static final int EXTENSION_NOT_ALLOWED
public static final int FIELD_NOT_FOUND
public static final int LISTENER_NOT_FOUND
public static final int SCHEMA_ERROR
public static final int ITEM_NOT_FOUND
public static final int REQUIRED_FIELD_MISSING
public RequestException(int errorCode)
errorCode
- an integer code to be chosen from the constants
defined in the class.public RequestException(int errorCode, java.lang.String extraMsg)
errorCode
- an integer code to be chosen from the constants
defined in the class.extraMsg
- a detailed information for the error.