com.lightstreamer.ls_proxy
Class ConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.lightstreamer.ls_proxy.ConnectionException
All Implemented Interfaces:
java.io.Serializable

public class ConnectionException
extends java.lang.Exception

Notifies an internal problem that prevents a connection operation.

See Also:
Serialized Form

Field Summary
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 Summary
ConnectionException(int errorCode)
          Used by Lightstreamer to create a ConnectionException.
ConnectionException(int errorCode, java.lang.String extraMsg)
          Used by Lightstreamer to create a ConnectionException.
 
Method Summary
 int getErrorCode()
          Gets the error code for the error condition.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVER_TIMEOUT

public static final int SERVER_TIMEOUT
Indicates an application timeout in the connection to the Server.

See Also:
Constant Field Values

GIVEN_UP

public static final int GIVEN_UP
Indicates that a pending connection request has been interrupted by a subsequent request.

See Also:
Constant Field Values

OBSOLETE_REQUEST

public static final int OBSOLETE_REQUEST
Indicates that a subsequent request has prevented the satisfaction of this request.

See Also:
Constant Field Values

ANSWER_TIMEOUT

public static final int ANSWER_TIMEOUT
Indicates an application timeout while reading the answer from the Server.

See Also:
Constant Field Values

INCOMPATIBLE_REQUEST

public static final int INCOMPATIBLE_REQUEST
Indicates that a connection with incompatible parameters is active and an explicit disconnection should be performed.

See Also:
Constant Field Values

UNEXPECTED_ERROR

public static final int UNEXPECTED_ERROR
Indicates an unexpected error condition while trying to satisfy a connection request.

See Also:
Constant Field Values
Constructor Detail

ConnectionException

public ConnectionException(int errorCode)
Used by Lightstreamer to create a ConnectionException.

Parameters:
errorCode - an integer code to be chosen from the constants defined in the class.

ConnectionException

public ConnectionException(int errorCode,
                           java.lang.String extraMsg)
Used by Lightstreamer to create a ConnectionException.

Parameters:
errorCode - an integer code to be chosen from the constants defined in the class.
extraMsg - a detailed information for the error.
Method Detail

getErrorCode

public int getErrorCode()
Gets the error code for the error condition.

Returns:
an integer error code, to be checked against the constants defined in the class.