public enum ErrorCodes extends java.lang.Enum<ErrorCodes>
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the code of the error.
|
java.lang.String |
getDefaultDescription()
Returns the default description.
|
java.lang.String |
getDescription()
Returns the localized description of the errorCode if
Context has been set. |
java.lang.String |
toString() |
static ErrorCodes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCodes GENERIC__GROUP
public static final ErrorCodes GENERIC_NO_ERROR
public static final ErrorCodes GENERIC_ANY_ERROR
public static final ErrorCodes GENERIC_PARAMETER_IS_NULL
public static final ErrorCodes GENERIC_PARAMETER_TOO_BIG
public static final ErrorCodes GENERIC_PARAMETER_TOO_SMALL
public static final ErrorCodes GENERIC_UNSUPPORTED_OPERATION
public static final ErrorCodes NETWORK__GROUP
public static final ErrorCodes NETWORK_NOT_AVAILABLE
public static final ErrorCodes NETWORK_IO_ERROR
public static final ErrorCodes NETWORK_INVALID_URL
public static final ErrorCodes AUTHENTICATION__GROUP
public static final ErrorCodes AUTHENTICATION_OAUTHTOKEN_EXPIRED
public static final ErrorCodes AUTHENTICATION_OAUTHTOKEN_REFRESH_REQUIRED
public static final ErrorCodes AUTHENTICATION_AUTHENTICATOR_ID_MISSING
public static final ErrorCodes AUTHENTICATION_OAUTHTOKEN_DATA_MISSING
public static final ErrorCodes AUTHENTICATION_FAILED_TO_SERIALIZE_TO_JSON
public static final ErrorCodes AUTHENTICATION_UNABLE_TO_PARSE
public static final ErrorCodes AUTHENTICATION_DATA_HAS_ERROR
public static final ErrorCodes REGISTRATION__GROUP
public static final ErrorCodes REGISTRATION_MISSING_OAUTH_CLIENTID
public static final ErrorCodes REGISTRATION_INVALID_JSON_FORMAT
public static final ErrorCodes REGISTRATION_INVALID_DATA
public static final ErrorCodes REGISTRATION_DATA_HAS_ERROR
public static final ErrorCodes REGISTRATION_UNABLE_TO_PARSE
public static final ErrorCodes ENROLLMENT__GROUP
public static final ErrorCodes ENROLMENT_MESSAGE_MISSING
public static final ErrorCodes ENROLMENT_INVALID_HTTP_METHOD
public static final ErrorCodes ENROLMENT_INVALID_JSON_FORMAT
public static final ErrorCodes ENROLMENT_UNABLE_TO_PARSE
public static final ErrorCodes ENROLMENT_HTTP_ERROR
public static final ErrorCodes ENROLMENT_NO_TYPE_IN_RESULT
public static final ErrorCodes ENROLMENT_NO_ID_IN_RESULT
public static final ErrorCodes ENROLMENT_FAILED_TO_SERIALIZE_TO_JSON
public static final ErrorCodes ENROLMENT_DATA_HAS_ERROR
public static final ErrorCodes ENROLMENT_UNKNOWN_ERROR_IN_RESPONSE
public static final ErrorCodes CHALLENGE__GROUP
public static final ErrorCodes CHALLENGE_NOT_REGISTERED
public static final ErrorCodes CHALLENGE_FAILED_TO_INVOKE
public static final ErrorCodes CHALLENGE_INVALID_JSON_FORMAT
public static final ErrorCodes CHALLENGE_UNABLE_TO_PARSE
public static final ErrorCodes TRANSACTION__GROUP
public static final ErrorCodes TRANSACTION_UNABLE_TO_PARSE
public static final ErrorCodes TRANSACTION_INVALID_JSON_FORMAT
public static final ErrorCodes TRANSACTION_ID_NOT_FOUND
public static final ErrorCodes TRANSACTION_DATA_HAS_ERROR
public static final ErrorCodes TRANSACTION_MESSAGE_NOT_FOUND
public static ErrorCodes[] values()
for (ErrorCodes c : ErrorCodes.values()) System.out.println(c);
public static ErrorCodes 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 java.lang.String getDescription()
Context
has been set.
Otherwise it returns the default description.public int getCode()
public java.lang.String toString()
toString
in class java.lang.Enum<ErrorCodes>
public java.lang.String getDefaultDescription()