public class PushServerException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
FIELDS_ERROR
Indicates that an update has been received with an unexpected number
of field values.
|
static int |
ITEMS_ERROR
Indicates that an update has been received with an unexpected item
number.
|
static int |
MAXFREQ_ERROR
Indicates that a request to change subscription constraints has been
refused because a maximum frequency was specified for an unfiltered
subscription.
|
static int |
MESSAGE_ERROR
Indicates that a message outcome has been received with an unexpected
message sequence/number.
|
static int |
NO_ANSWER
Indicates an empty output from the Server.
|
static int |
PROTOCOL_ERROR
Indicates a Server answer not consistent with the requests.
|
static int |
RECONNECTION_TIMEOUT
Indicates that an attempt to reconnect to a session has not received
any answer for longer than a configurable timeout time.
|
static int |
SERVER_REFUSAL
Indicates that a request has been unexpectedly refused by the Server.
|
static int |
SERVER_TIMEOUT
Indicates that the Server has not sent data updates or probes on the
connection for longer than a configurable timeout time.
|
static int |
SYNC_ERROR
Indicates that the connection content length has been consumed
but the binding to the same session with a new connection has failed.
|
static int |
SYNTAX_ERROR
Indicates an illegal output from the Server.
|
static int |
TABLE_ERROR
Indicates that an update has been received with an unexpected table
number.
|
static int |
UNEXPECTED_END
Indicates that the Server connection ended in the handshaking phase.
|
static int |
UNEXPECTED_ERROR
Indicates an unexpected exception in the client.
|
Constructor and Description |
---|
PushServerException(int errorCode)
Used by Lightstreamer to create a PushServerException.
|
PushServerException(int errorCode,
java.lang.String extraMsg)
Used by Lightstreamer to create a PushServerException.
|
PushServerException(int errorCode,
java.lang.Throwable cause)
Used by Lightstreamer to create a PushServerException.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the detailed error code, to support automatic recovery actions.
|
public static final int TABLE_ERROR
public static final int ITEMS_ERROR
public static final int FIELDS_ERROR
public static final int UNEXPECTED_END
public static final int SYNTAX_ERROR
public static final int NO_ANSWER
public static final int PROTOCOL_ERROR
public static final int SYNC_ERROR
public static final int SERVER_REFUSAL
public static final int SERVER_TIMEOUT
public static final int RECONNECTION_TIMEOUT
public static final int UNEXPECTED_ERROR
public static final int MESSAGE_ERROR
public static final int MAXFREQ_ERROR
public PushServerException(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.public PushServerException(int errorCode)
errorCode
- an integer code to be chosen from the constants
defined in the class.public PushServerException(int errorCode, java.lang.Throwable cause)
errorCode
- an integer code to be chosen from the constants
defined in the class.cause
- an unexpected exception occurred while during the
elaboration of the updates.