com.dukascopy.api
Enum JFException.Error

java.lang.Object
  extended by java.lang.Enum<JFException.Error>
      extended by com.dukascopy.api.JFException.Error
All Implemented Interfaces:
Serializable, Comparable<JFException.Error>
Enclosing class:
JFException

public static enum JFException.Error
extends Enum<JFException.Error>

Used to easily create exceptions with appropriate message


Enum Constant Summary
CALL_INCORRECT
           
COMMAND_IS_NULL
           
INVALID_AMOUNT
           
INVALID_GTT
           
LABEL_INCONSISTENT
           
LABEL_NOT_UNIQUE
           
ORDER_INCORRECT
           
ORDER_STATE_IMMUTABLE
           
ORDERS_UNAVAILABLE
           
QUEUE_OVERLOADED
           
THREAD_INCORRECT
           
ZERO_PRICE_NOT_ALLOWED
           
 
Method Summary
static JFException.Error valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JFException.Error[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LABEL_INCONSISTENT

public static final JFException.Error LABEL_INCONSISTENT

LABEL_NOT_UNIQUE

public static final JFException.Error LABEL_NOT_UNIQUE

ORDER_INCORRECT

public static final JFException.Error ORDER_INCORRECT

INVALID_AMOUNT

public static final JFException.Error INVALID_AMOUNT

CALL_INCORRECT

public static final JFException.Error CALL_INCORRECT

QUEUE_OVERLOADED

public static final JFException.Error QUEUE_OVERLOADED

THREAD_INCORRECT

public static final JFException.Error THREAD_INCORRECT

COMMAND_IS_NULL

public static final JFException.Error COMMAND_IS_NULL

ZERO_PRICE_NOT_ALLOWED

public static final JFException.Error ZERO_PRICE_NOT_ALLOWED

ORDERS_UNAVAILABLE

public static final JFException.Error ORDERS_UNAVAILABLE

ORDER_STATE_IMMUTABLE

public static final JFException.Error ORDER_STATE_IMMUTABLE

INVALID_GTT

public static final JFException.Error INVALID_GTT
Method Detail

values

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

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

valueOf

public static JFException.Error valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.