com.evernote.edam.error
Enum EDAMErrorCode

java.lang.Object
  extended by java.lang.Enum<EDAMErrorCode>
      extended by com.evernote.edam.error.EDAMErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EDAMErrorCode>, org.apache.thrift.TEnum

public enum EDAMErrorCode
extends java.lang.Enum<EDAMErrorCode>
implements org.apache.thrift.TEnum

Numeric codes indicating the type of error that occurred on the service.

UNKNOWN
No information available about the error
BAD_DATA_FORMAT
The format of the request data was incorrect
PERMISSION_DENIED
Not permitted to perform action
INTERNAL_ERROR
Unexpected problem with the service
DATA_REQUIRED
A required parameter/field was absent
LIMIT_REACHED
Operation denied due to data model limit
QUOTA_REACHED
Operation denied due to user storage limit
INVALID_AUTH
Username and/or password incorrect
AUTH_EXPIRED
Authentication token expired
DATA_CONFLICT
Change denied due to data model conflict
ENML_VALIDATION
Content of submitted note was malformed
SHARD_UNAVAILABLE
Service shard with account data is temporarily down


Enum Constant Summary
AUTH_EXPIRED
           
BAD_DATA_FORMAT
           
DATA_CONFLICT
           
DATA_REQUIRED
           
ENML_VALIDATION
           
INTERNAL_ERROR
           
INVALID_AUTH
           
LIMIT_REACHED
           
PERMISSION_DENIED
           
QUOTA_REACHED
           
SHARD_UNAVAILABLE
           
UNKNOWN
           
 
Method Summary
static EDAMErrorCode findByValue(int value)
          Find a the enum type by its integer value, as defined in the Thrift IDL.
 int getValue()
          Get the integer value of this enum value, as defined in the Thrift IDL.
static EDAMErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EDAMErrorCode[] 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

UNKNOWN

public static final EDAMErrorCode UNKNOWN

BAD_DATA_FORMAT

public static final EDAMErrorCode BAD_DATA_FORMAT

PERMISSION_DENIED

public static final EDAMErrorCode PERMISSION_DENIED

INTERNAL_ERROR

public static final EDAMErrorCode INTERNAL_ERROR

DATA_REQUIRED

public static final EDAMErrorCode DATA_REQUIRED

LIMIT_REACHED

public static final EDAMErrorCode LIMIT_REACHED

QUOTA_REACHED

public static final EDAMErrorCode QUOTA_REACHED

INVALID_AUTH

public static final EDAMErrorCode INVALID_AUTH

AUTH_EXPIRED

public static final EDAMErrorCode AUTH_EXPIRED

DATA_CONFLICT

public static final EDAMErrorCode DATA_CONFLICT

ENML_VALIDATION

public static final EDAMErrorCode ENML_VALIDATION

SHARD_UNAVAILABLE

public static final EDAMErrorCode SHARD_UNAVAILABLE
Method Detail

values

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

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

valueOf

public static EDAMErrorCode 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
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface org.apache.thrift.TEnum

findByValue

public static EDAMErrorCode findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.