public enum IdentityErrorCode extends java.lang.Enum<IdentityErrorCode>
Enum Constant and Description |
---|
ACCOUNT_NOT_FOUND
Account Not Found
|
CREATE_ACCOUNT_ERROR
Account Validation Error
|
CREATE_PROFILE_ERROR
Profiles Validation Error
|
EMAIL_EXIST
Email Already Exists
|
IMAGE_ONLY
Image only
|
INVALID_EMAIL_OR_PASSWORD
Invalid Email or Password
|
INVALID_FACEBOOK_TOKEN
Invalid Facebook Token
|
INVALID_GOOGLE_TOKEN
Invalid Google Token
|
INVALID_NEW_PASSWORD
New password is invalid
|
INVALID_OLD_PASSWORD
Old password is invalid
|
INVALID_PROFILES
Invalid profiles
|
INVALID_TOKEN
Invalid Token
|
MISSING_AVATAR
Missing Avatar
|
MISSING_EMAIL
Missing Email
|
MISSING_PASSWORD
Missing Password
|
MISSING_PROVIDER_TOKEN
Missing Provider Token
|
ONE_PROFILE
Your account must contain at least one profile
|
PROFILE_NOT_FOUND
Profile Not Found
|
UNKNOWN_ERROR
Unknown error.
|
UPDATE_PROFILES_ERROR
Profiles Validation Error
|
Modifier and Type | Method and Description |
---|---|
static IdentityErrorCode |
getError(int errorCode) |
int |
getErrorCode()
Get error code.
|
java.lang.String |
getMessage()
Get message.
|
java.lang.String |
toString() |
static IdentityErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IdentityErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentityErrorCode UNKNOWN_ERROR
public static final IdentityErrorCode MISSING_EMAIL
public static final IdentityErrorCode MISSING_PASSWORD
public static final IdentityErrorCode MISSING_PROVIDER_TOKEN
public static final IdentityErrorCode INVALID_PROFILES
public static final IdentityErrorCode MISSING_AVATAR
public static final IdentityErrorCode IMAGE_ONLY
public static final IdentityErrorCode INVALID_TOKEN
public static final IdentityErrorCode INVALID_EMAIL_OR_PASSWORD
public static final IdentityErrorCode INVALID_FACEBOOK_TOKEN
public static final IdentityErrorCode INVALID_GOOGLE_TOKEN
public static final IdentityErrorCode ACCOUNT_NOT_FOUND
public static final IdentityErrorCode PROFILE_NOT_FOUND
public static final IdentityErrorCode EMAIL_EXIST
public static final IdentityErrorCode CREATE_PROFILE_ERROR
public static final IdentityErrorCode CREATE_ACCOUNT_ERROR
public static final IdentityErrorCode UPDATE_PROFILES_ERROR
public static final IdentityErrorCode ONE_PROFILE
public static final IdentityErrorCode INVALID_OLD_PASSWORD
public static final IdentityErrorCode INVALID_NEW_PASSWORD
public static IdentityErrorCode[] values()
for (IdentityErrorCode c : IdentityErrorCode.values()) System.out.println(c);
public static IdentityErrorCode 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 int getErrorCode()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Enum<IdentityErrorCode>
public static IdentityErrorCode getError(int errorCode)