Package church.i18n.processing.status
Enum Class ClientError
- All Implemented Interfaces:
Status,Serializable,Comparable<ClientError>,Constable
List of client error statuses matching HTTP status codes that reflect validation errors and are
not bound into a web service layer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintValue of system-wide processing status.static ClientErrorReturns the enum constant of this class with the specified name.static ClientError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BAD_REQUEST
-
UNAUTHORIZED
-
PAYMENT_REQUIRED
-
FORBIDDEN
-
NOT_FOUND
-
CONFLICT
-
GONE
-
UNSUPPORTED_MEDIA_TYPE
-
UNAVAILABLE_FOR_LEGAL_REASONS
-
-
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
-
getStatusId
public int getStatusId()Description copied from interface:StatusValue of system-wide processing status.- Specified by:
getStatusIdin interfaceStatus- Returns:
- Numeric representation of status returned with the exception.
-