|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ErrorEnum>
org.otfeed.protocol.ErrorEnum
public 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 are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ErrorEnum BAD_LOGIN
public static final ErrorEnum NOT_LOGGED_IN
public static final ErrorEnum NO_DATA
public static final ErrorEnum INVALID_CANCEL_ID
public static final ErrorEnum INVALID_INTERVAL
public static final ErrorEnum NO_LICENSE
public static final ErrorEnum LIMIT_EXCEEDED
public static final ErrorEnum DUPLICATE_REQUEST
public static final ErrorEnum INACTIVE_ACCOUNT
public static final ErrorEnum LOGGED_IN
public static final ErrorEnum BAD_REQUEST
public static final ErrorEnum NO_HIST_PACKAGE
public static final ErrorEnum E_SYSTEM
public static final ErrorEnum E_SYSTEM_SERVER_ERROR
public static final ErrorEnum E_CANNOT_CONNECT
public static final ErrorEnum E_OPENTICK
public static final ErrorEnum E_OTFEED_OK
public static final ErrorEnum E_OTFEED_INTERNAL
public static final ErrorEnum E_OTFEED_CANCELLED
| Field Detail |
|---|
public final int code
| Method Detail |
|---|
public static ErrorEnum[] values()
for (ErrorEnum c : ErrorEnum.values()) System.out.println(c);
public static ErrorEnum valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||