org.squirrelframework.foundation.exception
Enum ErrorCodes

java.lang.Object
  extended by java.lang.Enum<ErrorCodes>
      extended by org.squirrelframework.foundation.exception.ErrorCodes
All Implemented Interfaces:
Serializable, Comparable<ErrorCodes>

public enum ErrorCodes
extends Enum<ErrorCodes>


Enum Constant Summary
CANNOT_GET_FIELD_VALUE
           
CANNOT_SET_FIELD_VALUE
           
CLASS_NOT_FOUND
           
CONSTRUCT_NEW_INSTANCE_ERROR
           
CONSTRUCTOR_NOT_FOUND
           
FIELD_NOT_FOUND
           
FIELD_NULL
           
FSM_TRANSITION_ERROR
           
ILLEGAL_CLASS_NAME
           
ILLEGAL_TYPE_CASTING
           
INTERNAL_ERROR
           
INVOKE_PERSISTED_ENTITY_METHOD_ERROR
           
METHOD_INVOKE_ERROR
           
METHOD_NOT_FOUND
           
METHOD_NULL
           
METHOD_UNEXPECTED_PARAMETERS
           
MISSING_ITEM_PROVIDER
           
NOT_ALLOW_ACCESS_FIELD
           
NOT_ALLOW_ACCESS_METHOD
           
UNEXPECTED_ERROR
           
 
Method Summary
 int getCode()
           
 String getDescription()
           
 String toString()
           
static ErrorCodes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorCodes[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MISSING_ITEM_PROVIDER

public static final ErrorCodes MISSING_ITEM_PROVIDER

ILLEGAL_TYPE_CASTING

public static final ErrorCodes ILLEGAL_TYPE_CASTING

INVOKE_PERSISTED_ENTITY_METHOD_ERROR

public static final ErrorCodes INVOKE_PERSISTED_ENTITY_METHOD_ERROR

NOT_ALLOW_ACCESS_FIELD

public static final ErrorCodes NOT_ALLOW_ACCESS_FIELD

FIELD_NOT_FOUND

public static final ErrorCodes FIELD_NOT_FOUND

NOT_ALLOW_ACCESS_METHOD

public static final ErrorCodes NOT_ALLOW_ACCESS_METHOD

METHOD_NOT_FOUND

public static final ErrorCodes METHOD_NOT_FOUND

CONSTRUCT_NEW_INSTANCE_ERROR

public static final ErrorCodes CONSTRUCT_NEW_INSTANCE_ERROR

CANNOT_GET_FIELD_VALUE

public static final ErrorCodes CANNOT_GET_FIELD_VALUE

CANNOT_SET_FIELD_VALUE

public static final ErrorCodes CANNOT_SET_FIELD_VALUE

METHOD_NULL

public static final ErrorCodes METHOD_NULL

FIELD_NULL

public static final ErrorCodes FIELD_NULL

METHOD_INVOKE_ERROR

public static final ErrorCodes METHOD_INVOKE_ERROR

CONSTRUCTOR_NOT_FOUND

public static final ErrorCodes CONSTRUCTOR_NOT_FOUND

ILLEGAL_CLASS_NAME

public static final ErrorCodes ILLEGAL_CLASS_NAME

CLASS_NOT_FOUND

public static final ErrorCodes CLASS_NOT_FOUND

METHOD_UNEXPECTED_PARAMETERS

public static final ErrorCodes METHOD_UNEXPECTED_PARAMETERS

FSM_TRANSITION_ERROR

public static final ErrorCodes FSM_TRANSITION_ERROR

INTERNAL_ERROR

public static final ErrorCodes INTERNAL_ERROR

UNEXPECTED_ERROR

public static final ErrorCodes UNEXPECTED_ERROR
Method Detail

values

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

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

valueOf

public static ErrorCodes 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

getDescription

public String getDescription()

getCode

public int getCode()

toString

public String toString()
Overrides:
toString in class Enum<ErrorCodes>


Copyright © 2013-2014. All Rights Reserved.