com.eurotech.framework
Enum EsfErrorCode

java.lang.Object
  extended by java.lang.Enum<EsfErrorCode>
      extended by com.eurotech.framework.EsfErrorCode
All Implemented Interfaces:
Serializable, Comparable<EsfErrorCode>

public enum EsfErrorCode
extends Enum<EsfErrorCode>

EsfErrorCode holds the enumeration of valid error codes for the exception message. For each defined enum value, a corresponding message should be defined in the properties bundle named: EsfExceptionMessagesBundle.properties.


Enum Constant Summary
CONFIGURATION_ATTRIBUTE_INVALID
           
CONFIGURATION_ATTRIBUTE_UNDEFINED
           
CONFIGURATION_ERROR
           
CONFIGURATION_REQUIRED_ATTRIBUTE_MISSING
           
CONFIGURATION_ROLLBACK
           
CONFIGURATION_SNAPSHOT_LISTING
           
CONFIGURATION_SNAPSHOT_LOADING
           
CONFIGURATION_SNAPSHOT_NOT_FOUND
           
CONFIGURATION_SNAPSHOT_TAKING
           
CONFIGURATION_UPDATE
           
CONNECTION_FAILED
           
ENCODE_ERROR
           
INTERNAL_ERROR
           
INVALID_MESSAGE_EXCEPTION
           
INVALID_METRIC_EXCEPTION
           
NOT_CONNECTED
           
PARTIAL_SUCCESS
           
PORT_IN_USE
           
SECURITY_EXCEPTION
           
SERIAL_PORT_INVALID_CONFIGURATION
           
SERIAL_PORT_NOT_EXISTING
           
STORE_ERROR
           
TIMED_OUT
           
TOO_MANY_INFLIGHT_MESSAGES
           
 
Method Summary
static EsfErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EsfErrorCode[] 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

CONFIGURATION_ERROR

public static final EsfErrorCode CONFIGURATION_ERROR

CONFIGURATION_UPDATE

public static final EsfErrorCode CONFIGURATION_UPDATE

CONFIGURATION_ROLLBACK

public static final EsfErrorCode CONFIGURATION_ROLLBACK

CONFIGURATION_ATTRIBUTE_UNDEFINED

public static final EsfErrorCode CONFIGURATION_ATTRIBUTE_UNDEFINED

CONFIGURATION_ATTRIBUTE_INVALID

public static final EsfErrorCode CONFIGURATION_ATTRIBUTE_INVALID

CONFIGURATION_REQUIRED_ATTRIBUTE_MISSING

public static final EsfErrorCode CONFIGURATION_REQUIRED_ATTRIBUTE_MISSING

CONFIGURATION_SNAPSHOT_NOT_FOUND

public static final EsfErrorCode CONFIGURATION_SNAPSHOT_NOT_FOUND

CONFIGURATION_SNAPSHOT_TAKING

public static final EsfErrorCode CONFIGURATION_SNAPSHOT_TAKING

CONFIGURATION_SNAPSHOT_LISTING

public static final EsfErrorCode CONFIGURATION_SNAPSHOT_LISTING

CONFIGURATION_SNAPSHOT_LOADING

public static final EsfErrorCode CONFIGURATION_SNAPSHOT_LOADING

INTERNAL_ERROR

public static final EsfErrorCode INTERNAL_ERROR

SERIAL_PORT_INVALID_CONFIGURATION

public static final EsfErrorCode SERIAL_PORT_INVALID_CONFIGURATION

SERIAL_PORT_NOT_EXISTING

public static final EsfErrorCode SERIAL_PORT_NOT_EXISTING

PORT_IN_USE

public static final EsfErrorCode PORT_IN_USE

PARTIAL_SUCCESS

public static final EsfErrorCode PARTIAL_SUCCESS

SECURITY_EXCEPTION

public static final EsfErrorCode SECURITY_EXCEPTION

NOT_CONNECTED

public static final EsfErrorCode NOT_CONNECTED

TIMED_OUT

public static final EsfErrorCode TIMED_OUT

CONNECTION_FAILED

public static final EsfErrorCode CONNECTION_FAILED

TOO_MANY_INFLIGHT_MESSAGES

public static final EsfErrorCode TOO_MANY_INFLIGHT_MESSAGES

STORE_ERROR

public static final EsfErrorCode STORE_ERROR

ENCODE_ERROR

public static final EsfErrorCode ENCODE_ERROR

INVALID_METRIC_EXCEPTION

public static final EsfErrorCode INVALID_METRIC_EXCEPTION

INVALID_MESSAGE_EXCEPTION

public static final EsfErrorCode INVALID_MESSAGE_EXCEPTION
Method Detail

values

public static EsfErrorCode[] 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 (EsfErrorCode c : EsfErrorCode.values())
    System.out.println(c);

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

valueOf

public static EsfErrorCode 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 © 2013. All Rights Reserved.