org.otfeed.protocol
Enum ErrorEnum

java.lang.Object
  extended by java.lang.Enum<ErrorEnum>
      extended by org.otfeed.protocol.ErrorEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorEnum>

public enum ErrorEnum
extends java.lang.Enum<ErrorEnum>

Enumerates well-known OpenTick error codes.


Enum Constant Summary
BAD_LOGIN
          Incorrect login (username / password).
BAD_REQUEST
          Parameters of the request are incorrect.
DUPLICATE_REQUEST
          You have requested this tick stream already.
E_CANNOT_CONNECT
          Cannot connect error.
E_OPENTICK
          Opentick error.
E_OTFEED_CANCELLED
          Request has been cancelled
E_OTFEED_INTERNAL
          Otfeed client experienced an internal error
E_OTFEED_OK
          Otfeed client was shutdown (normal exit)
E_SYSTEM
          System error.
E_SYSTEM_SERVER_ERROR
          Server error.
INACTIVE_ACCOUNT
          Your account is inactive.
INVALID_CANCEL_ID
          Invalid cancelId.
INVALID_INTERVAL
          Invalid interval type or value of the request for historical data.
LIMIT_EXCEEDED
          Your symbol limit is exceeded.
LOGGED_IN
          You are logged in already.
NO_DATA
          Requested data does not exist.
NO_HIST_PACKAGE
          You are not subscribed to a historical data package.
NO_LICENSE
          You do not have a license to request real-time data from the specified exchange.
NOT_LOGGED_IN
          You are not logged in.
 
Field Summary
 int code
           
 
Method Summary
static ErrorEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BAD_LOGIN

public static final ErrorEnum BAD_LOGIN
Incorrect login (username / password).


NOT_LOGGED_IN

public static final ErrorEnum NOT_LOGGED_IN
You are not logged in.


NO_DATA

public static final ErrorEnum NO_DATA
Requested data does not exist.


INVALID_CANCEL_ID

public static final ErrorEnum INVALID_CANCEL_ID
Invalid cancelId.


INVALID_INTERVAL

public static final ErrorEnum INVALID_INTERVAL
Invalid interval type or value of the request for historical data.


NO_LICENSE

public static final ErrorEnum NO_LICENSE
You do not have a license to request real-time data from the specified exchange.


LIMIT_EXCEEDED

public static final ErrorEnum LIMIT_EXCEEDED
Your symbol limit is exceeded.


DUPLICATE_REQUEST

public static final ErrorEnum DUPLICATE_REQUEST
You have requested this tick stream already.


INACTIVE_ACCOUNT

public static final ErrorEnum INACTIVE_ACCOUNT
Your account is inactive.


LOGGED_IN

public static final ErrorEnum LOGGED_IN
You are logged in already.


BAD_REQUEST

public static final ErrorEnum BAD_REQUEST
Parameters of the request are incorrect.


NO_HIST_PACKAGE

public static final ErrorEnum NO_HIST_PACKAGE
You are not subscribed to a historical data package.


E_SYSTEM

public static final ErrorEnum E_SYSTEM
System error.


E_SYSTEM_SERVER_ERROR

public static final ErrorEnum E_SYSTEM_SERVER_ERROR
Server error.


E_CANNOT_CONNECT

public static final ErrorEnum E_CANNOT_CONNECT
Cannot connect error.


E_OPENTICK

public static final ErrorEnum E_OPENTICK
Opentick error.


E_OTFEED_OK

public static final ErrorEnum E_OTFEED_OK
Otfeed client was shutdown (normal exit)


E_OTFEED_INTERNAL

public static final ErrorEnum E_OTFEED_INTERNAL
Otfeed client experienced an internal error


E_OTFEED_CANCELLED

public static final ErrorEnum E_OTFEED_CANCELLED
Request has been cancelled

Field Detail

code

public final int code
Method Detail

values

public static final ErrorEnum[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ErrorEnum c : ErrorEnum.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ErrorEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2007 Mike Kroutikov. All Rights Reserved.