Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- org.craftercms.profile.api.exceptions.ErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode>
Contains profile's error codes.- Author:
- avasquez
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorCode
valueOf(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.
-
-
-
Enum Constant Detail
-
ACCESS_TOKEN_EXISTS
public static final ErrorCode ACCESS_TOKEN_EXISTS
-
NO_SUCH_ACCESS_TOKEN_ID
public static final ErrorCode NO_SUCH_ACCESS_TOKEN_ID
-
ACCESS_DENIED
public static final ErrorCode ACCESS_DENIED
-
ACTION_DENIED
public static final ErrorCode ACTION_DENIED
-
NO_SUCH_TENANT
public static final ErrorCode NO_SUCH_TENANT
-
BAD_CREDENTIALS
public static final ErrorCode BAD_CREDENTIALS
-
DISABLED_PROFILE
public static final ErrorCode DISABLED_PROFILE
-
NO_SUCH_PROFILE
public static final ErrorCode NO_SUCH_PROFILE
-
NO_SUCH_TICKET
public static final ErrorCode NO_SUCH_TICKET
-
NO_SUCH_PERSISTENT_LOGIN
public static final ErrorCode NO_SUCH_PERSISTENT_LOGIN
-
NO_SUCH_VERIFICATION_TOKEN
public static final ErrorCode NO_SUCH_VERIFICATION_TOKEN
-
INVALID_EMAIL_ADDRESS
public static final ErrorCode INVALID_EMAIL_ADDRESS
-
PERMISSION_ERROR
public static final ErrorCode PERMISSION_ERROR
-
ATTRIBUTE_ALREADY_DEFINED
public static final ErrorCode ATTRIBUTE_ALREADY_DEFINED
-
ATTRIBUTE_NOT_DEFINED
public static final ErrorCode ATTRIBUTE_NOT_DEFINED
-
PARAM_DESERIALIZATION_ERROR
public static final ErrorCode PARAM_DESERIALIZATION_ERROR
-
TENANT_EXISTS
public static final ErrorCode TENANT_EXISTS
-
PROFILE_EXISTS
public static final ErrorCode PROFILE_EXISTS
-
INVALID_QUERY
public static final ErrorCode INVALID_QUERY
-
OTHER
public static final ErrorCode OTHER
-
-
Method Detail
-
values
public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-