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:
com.evernote.thrift.TEnum, java.io.Serializable, java.lang.Comparable<EDAMErrorCode>

public enum EDAMErrorCode
extends java.lang.Enum<EDAMErrorCode>
implements com.evernote.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
LEN_TOO_SHORT
Operation denied due to data model limit, where something such as a string length was too short
LEN_TOO_LONG
Operation denied due to data model limit, where something such as a string length was too long
TOO_FEW
Operation denied due to data model limit, where there were too few of something.
TOO_MANY
Operation denied due to data model limit, where there were too many of something.
UNSUPPORTED_OPERATION
Operation denied because it is currently unsupported.
TAKEN_DOWN
Operation denied because access to the corresponding object is prohibited in response to a take-down notice.
RATE_LIMIT_REACHED
Operation denied because the calling application has reached its hourly API call limit for this user.


Enum Constant Summary
AUTH_EXPIRED
           
BAD_DATA_FORMAT
           
DATA_CONFLICT
           
DATA_REQUIRED
           
ENML_VALIDATION
           
INTERNAL_ERROR
           
INVALID_AUTH
           
LEN_TOO_LONG
           
LEN_TOO_SHORT
           
LIMIT_REACHED
           
PERMISSION_DENIED
           
QUOTA_REACHED
           
RATE_LIMIT_REACHED
           
SHARD_UNAVAILABLE
           
TAKEN_DOWN
           
TOO_FEW
           
TOO_MANY
           
UNKNOWN
           
UNSUPPORTED_OPERATION
           
 
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
compareTo, equals, 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

LEN_TOO_SHORT

public static final EDAMErrorCode LEN_TOO_SHORT

LEN_TOO_LONG

public static final EDAMErrorCode LEN_TOO_LONG

TOO_FEW

public static final EDAMErrorCode TOO_FEW

TOO_MANY

public static final EDAMErrorCode TOO_MANY

UNSUPPORTED_OPERATION

public static final EDAMErrorCode UNSUPPORTED_OPERATION

TAKEN_DOWN

public static final EDAMErrorCode TAKEN_DOWN

RATE_LIMIT_REACHED

public static final EDAMErrorCode RATE_LIMIT_REACHED
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 com.evernote.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.