Package kos.core.validation
Enum FailureType
- All Implemented Interfaces:
Serializable,Comparable<FailureType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the server cannot or will not process the entity due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).Other failure reasonIndicates that the server understands the content of this entity and, apparently, all statically required attributes is present. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FailureTypeReturns the enum constant of this type with the specified name.static FailureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNPROCESSABLE_ENTITY
Indicates that the server understands the content of this entity and, apparently, all statically required attributes is present. However, but it was unable to process the contained instructions. -
MALFORMED_ENTITY
Indicates that the server cannot or will not process the entity due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). -
OTHER
Other failure reason
-
-
Constructor Details
-
FailureType
private FailureType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-