All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evernote.edam.error.EDAMErrorCode Maven / Gradle / Ivy

The newest version!
/**
 * Autogenerated by Thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package com.evernote.edam.error;


import java.util.Map;
import java.util.HashMap;
import 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.
*
*/ public enum EDAMErrorCode implements TEnum { UNKNOWN(1), BAD_DATA_FORMAT(2), PERMISSION_DENIED(3), INTERNAL_ERROR(4), DATA_REQUIRED(5), LIMIT_REACHED(6), QUOTA_REACHED(7), INVALID_AUTH(8), AUTH_EXPIRED(9), DATA_CONFLICT(10), ENML_VALIDATION(11), SHARD_UNAVAILABLE(12), LEN_TOO_SHORT(13), LEN_TOO_LONG(14), TOO_FEW(15), TOO_MANY(16), UNSUPPORTED_OPERATION(17), TAKEN_DOWN(18), RATE_LIMIT_REACHED(19); private final int value; private EDAMErrorCode(int value) { this.value = value; } /** * Get the integer value of this enum value, as defined in the Thrift IDL. */ public int getValue() { return value; } /** * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ public static EDAMErrorCode findByValue(int value) { switch (value) { case 1: return UNKNOWN; case 2: return BAD_DATA_FORMAT; case 3: return PERMISSION_DENIED; case 4: return INTERNAL_ERROR; case 5: return DATA_REQUIRED; case 6: return LIMIT_REACHED; case 7: return QUOTA_REACHED; case 8: return INVALID_AUTH; case 9: return AUTH_EXPIRED; case 10: return DATA_CONFLICT; case 11: return ENML_VALIDATION; case 12: return SHARD_UNAVAILABLE; case 13: return LEN_TOO_SHORT; case 14: return LEN_TOO_LONG; case 15: return TOO_FEW; case 16: return TOO_MANY; case 17: return UNSUPPORTED_OPERATION; case 18: return TAKEN_DOWN; case 19: return RATE_LIMIT_REACHED; default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy