com.lightstreamer.ls_proxy
Class PushUpdateException

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

public class PushUpdateException
extends java.lang.Exception

Notifies an asynchronous error caused by unexpected data values coming from Lightstreamer Server.

See Also:
Serialized Form

Field Summary
static int EVENTS_FLOW_RESTARTED
          Indicates an interruption in the events flow such that the flow may restart before or after the last event received.
static int POSSIBLE_LOSS_OF_EVENTS
          Indicates that a hole in events flow could be happened; in such case, the flow could not be recovered.
static int REQUIRED_FIELD_NULL
          Indicates that a required field has been received null from the Server.
static int UNEXPECTED_EOS
          Indicates that an unexpected end of snapshot notification has been received from the Server.
 
Constructor Summary
PushUpdateException(int errorCode)
          Used by Lightstreamer to create a PushUpdateException.
PushUpdateException(int errorCode, java.lang.String extraMsg)
          Used by Lightstreamer to create a PushUpdateException.
 
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

REQUIRED_FIELD_NULL

public static final int REQUIRED_FIELD_NULL
Indicates that a required field has been received null from the Server.

See Also:
Constant Field Values

POSSIBLE_LOSS_OF_EVENTS

public static final int POSSIBLE_LOSS_OF_EVENTS
Indicates that a hole in events flow could be happened; in such case, the flow could not be recovered.

See Also:
Constant Field Values

EVENTS_FLOW_RESTARTED

public static final int EVENTS_FLOW_RESTARTED
Indicates an interruption in the events flow such that the flow may restart before or after the last event received.

See Also:
Constant Field Values

UNEXPECTED_EOS

public static final int UNEXPECTED_EOS
Indicates that an unexpected end of snapshot notification has been received from the Server.

See Also:
Constant Field Values
Constructor Detail

PushUpdateException

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

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

PushUpdateException

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

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.