public class ConnectionException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
ANSWER_TIMEOUT
Indicates an application timeout while reading the answer from the
Server.
|
static int |
GIVEN_UP
Indicates that a pending connection request has been interrupted
by a subsequent request.
|
static int |
INCOMPATIBLE_REQUEST
Indicates that a connection with incompatible parameters is active
and an explicit disconnection should be performed.
|
static int |
OBSOLETE_REQUEST
Indicates that a subsequent request has prevented the satisfaction
of this request.
|
static int |
SERVER_TIMEOUT
Indicates an application timeout in the connection to the Server.
|
static int |
UNEXPECTED_ERROR
Indicates an unexpected error condition while trying to satisfy
a connection request.
|
Constructor and Description |
---|
ConnectionException(int errorCode)
Used by Lightstreamer to create a ConnectionException.
|
ConnectionException(int errorCode,
java.lang.String extraMsg)
Used by Lightstreamer to create a ConnectionException.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code for the error condition.
|
public static final int SERVER_TIMEOUT
public static final int GIVEN_UP
public static final int OBSOLETE_REQUEST
public static final int ANSWER_TIMEOUT
public static final int INCOMPATIBLE_REQUEST
public static final int UNEXPECTED_ERROR
public ConnectionException(int errorCode)
errorCode
- an integer code to be chosen from the constants
defined in the class.public ConnectionException(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.