com.lightstreamer.ls_proxy
Class ItemException

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

public class ItemException
extends java.lang.Exception

Notifies an error in the configuration of an Item.

See Also:
Serialized Form

Field Summary
static int BUFFER_SIZE_UNEXPECTED
          Indicates an attempt to set a maximum ItemEventBuffer buffer size for an Item that doesn't support buffer resizing.
static int MAX_FREQUENCY_UNEXPECTED
          Indicates an attempt to set a maximum Update frequency for an Item that doesn't support frequency setting.
static int MAX_SNAPSHOT_UNEXPECTED
          Indicates an attempt to set a Snapshot length for an Item that doesn't support Snapshot sizing.
static int NULL_MODE
          Indicates an attempt to set a null mode for the Item.
static int NULL_NAME
          Indicates an attempt to set a null name for the Item.
static int RECOVERY_DELAY_UNEXPECTED
          Indicates an attempt to set a null mode for the Item.
static int UNFILTERED_UNEXPECTED
          Indicates an attempt to request unfiltered dispatching for an Item that doesn't support filtering/unfiltering setting.
static int WRONG_MODE
          Indicates an attempt to set an unexistent mode for the Item.
 
Constructor Summary
ItemException(int errorCode)
          Used by Lightstreamer to create an ItemException.
 
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

WRONG_MODE

public static final int WRONG_MODE
Indicates an attempt to set an unexistent mode for the Item.

See Also:
Constant Field Values

BUFFER_SIZE_UNEXPECTED

public static final int BUFFER_SIZE_UNEXPECTED
Indicates an attempt to set a maximum ItemEventBuffer buffer size for an Item that doesn't support buffer resizing.

See Also:
Constant Field Values

MAX_FREQUENCY_UNEXPECTED

public static final int MAX_FREQUENCY_UNEXPECTED
Indicates an attempt to set a maximum Update frequency for an Item that doesn't support frequency setting.

See Also:
Constant Field Values

MAX_SNAPSHOT_UNEXPECTED

public static final int MAX_SNAPSHOT_UNEXPECTED
Indicates an attempt to set a Snapshot length for an Item that doesn't support Snapshot sizing.

See Also:
Constant Field Values

NULL_NAME

public static final int NULL_NAME
Indicates an attempt to set a null name for the Item.

See Also:
Constant Field Values

NULL_MODE

public static final int NULL_MODE
Indicates an attempt to set a null mode for the Item.

See Also:
Constant Field Values

RECOVERY_DELAY_UNEXPECTED

public static final int RECOVERY_DELAY_UNEXPECTED
Indicates an attempt to set a null mode for the Item.

See Also:
Constant Field Values

UNFILTERED_UNEXPECTED

public static final int UNFILTERED_UNEXPECTED
Indicates an attempt to request unfiltered dispatching for an Item that doesn't support filtering/unfiltering setting.

See Also:
Constant Field Values
Constructor Detail

ItemException

public ItemException(int errorCode)
Used by Lightstreamer to create an ItemException.

Parameters:
errorCode - an integer code to be chosen from the constants defined in the class.
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.