Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
An enumeration of error codes which may provide greater detail as to why
a problem occurred.
Created by patricktwohig on 4/10/15.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request conflicts with existing data for some reason.There already exists a resource of this type.An external resource failed to behave ideally.Access to a given resource is forbidden.Invalid data or input was provided.Indicates an invalid parameter was passed to the APIAn object or resource was not found.The particular feature is not implemented or is currently unavailable.A particular resource is overloaded at the moment.Access to a given resource is unauthorized.Healths checks failed.Some other exception. -
Method Summary
-
Enum Constant Details
-
NOT_FOUND
An object or resource was not found. -
FORBIDDEN
Access to a given resource is forbidden. -
UNAUTHORIZED
Access to a given resource is unauthorized. -
INVALID_PARAMETER
Indicates an invalid parameter was passed to the API -
DUPLICATE
There already exists a resource of this type. -
CONFLICT
The request conflicts with existing data for some reason. -
INVALID_DATA
Invalid data or input was provided. -
OVERLOAD
A particular resource is overloaded at the moment. -
NOT_IMPLEMENTED
The particular feature is not implemented or is currently unavailable. -
EXTERNAL_RESOURCE_FAILED
An external resource failed to behave ideally. -
UNHEALTHY
Healths checks failed. -
UNKNOWN
Some other exception.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-