Enum Constant and Description |
---|
APPEND_PROFILE_ERROR
Append Profile Error
|
EVENT_VALIDATION_ERROR
Event Validation Error
|
INCREASE_PROFILE_ERROR
Increase Profile Error
|
INVALID_ALIAS_ID
Invalid Alias ID
|
INVALID_DEVICE_TOKEN
Invalid Device Token
|
INVALID_PLATFORM
Invalid Platform
|
INVALID_PROFILE
Invalid Profile ID
|
INVALID_TOKEN
Invalid Token
|
MISSING_EVENT_NAME
Missing Event Name
|
MISSING_KEY
Missing Key
|
MISSING_KEYS
Missing Keys
|
MISSING_QUERY
Missing Query
|
PLATFORM_APP_NOT_FOUND
Platform App Not Found
|
SERVER_GET_PROFILE_PROPERTIES_ERROR
Server error: Get Properties Error
|
SERVER_GET_PROFILE_PROPERTY_ERROR
Server error: Get Property Error
|
SERVER_REDIS_IS_DOWN
Server error: Redis Is Unavailable
|
SERVER_REMOVE_ARRAY_ERROR
Server error: Remove Array Error
|
SERVER_SEARCH_ARRAY_ERROR
Server error: Search Array Error
|
SERVER_UPDATE_DEVICE_TOKEN_ERROR
Server error: Update Device Token Error
|
SET_ONCE_PROFILE_ERROR
Set Once Profile Error
|
SET_PROFILE_ERROR
Set Profile Error
|
SNS_CREATE_ENDPOINT_ERROR
Create Device Token Error
|
SNS_GET_ATTRIBUTE_ERROR
Get Device Token Attribute Error
|
SNS_UPDATE_ATTRIBUTE_ERROR
Update Device Token Attribute Error
|
UNION_PROFILE_ERROR
Union Profile Error
|
UNKNOWN_ERROR
Unknown error.
|
UPDATE_PROFILE_ERROR
Update Profile Error
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
getError(int errorCode) |
int |
getErrorCode()
Get error code.
|
java.lang.String |
getMessage()
Get message.
|
boolean |
isInternalServerError()
Determine that there is internal error of server or not.
|
java.lang.String |
toString() |
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode UNKNOWN_ERROR
public static final ErrorCode INVALID_PROFILE
public static final ErrorCode INVALID_ALIAS_ID
public static final ErrorCode MISSING_EVENT_NAME
public static final ErrorCode INVALID_PLATFORM
public static final ErrorCode INVALID_DEVICE_TOKEN
public static final ErrorCode MISSING_KEY
public static final ErrorCode MISSING_KEYS
public static final ErrorCode MISSING_QUERY
public static final ErrorCode INVALID_TOKEN
public static final ErrorCode PLATFORM_APP_NOT_FOUND
public static final ErrorCode UPDATE_PROFILE_ERROR
public static final ErrorCode EVENT_VALIDATION_ERROR
public static final ErrorCode SNS_GET_ATTRIBUTE_ERROR
public static final ErrorCode SNS_UPDATE_ATTRIBUTE_ERROR
public static final ErrorCode SNS_CREATE_ENDPOINT_ERROR
public static final ErrorCode SET_PROFILE_ERROR
public static final ErrorCode SET_ONCE_PROFILE_ERROR
public static final ErrorCode INCREASE_PROFILE_ERROR
public static final ErrorCode APPEND_PROFILE_ERROR
public static final ErrorCode UNION_PROFILE_ERROR
public static final ErrorCode SERVER_REDIS_IS_DOWN
public static final ErrorCode SERVER_GET_PROFILE_PROPERTY_ERROR
public static final ErrorCode SERVER_GET_PROFILE_PROPERTIES_ERROR
public static final ErrorCode SERVER_SEARCH_ARRAY_ERROR
public static final ErrorCode SERVER_REMOVE_ARRAY_ERROR
public static final ErrorCode SERVER_UPDATE_DEVICE_TOKEN_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isInternalServerError()
public int getErrorCode()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Enum<ErrorCode>
public static ErrorCode getError(int errorCode)