Package kos.core.validation
Enum FailureType
- java.lang.Object
-
- java.lang.Enum<FailureType>
-
- kos.core.validation.FailureType
-
- All Implemented Interfaces:
Serializable,Comparable<FailureType>
public enum FailureType extends Enum<FailureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MALFORMED_ENTITYIndicates 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).OTHEROther failure reasonUNPROCESSABLE_ENTITYIndicates that the server understands the content of this entity and, apparently, all statically required attributes is present.
-
Constructor Summary
Constructors Modifier Constructor Description privateFailureType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FailureTypevalueOf(String name)Returns 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 Detail
-
UNPROCESSABLE_ENTITY
public static final FailureType 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
public static final FailureType 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
public static final FailureType OTHER
Other failure reason
-
-
Method Detail
-
values
public static FailureType[] 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 (FailureType c : FailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FailureType 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
-
-