Package com.kazforge.jsonapi.diagnostic
Enum Class CodecFailureCategory
- All Implemented Interfaces:
Serializable,Comparable<CodecFailureCategory>,Constable
Stable decoding or validation stage for a
JsonApiDocumentReadException.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJsonApiDocumentValidatorrejected the document.A JSON object repeated the same member name.A public core constructor rejected the value (local validation).Input is not well-formed JSON.A JSON token was present where a different token kind was required. -
Method Summary
Modifier and TypeMethodDescriptionstatic CodecFailureCategoryReturns the enum constant of this class with the specified name.static CodecFailureCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MALFORMED_JSON
Input is not well-formed JSON. -
UNEXPECTED_TOKEN
A JSON token was present where a different token kind was required. -
DUPLICATE_MEMBER
A JSON object repeated the same member name. -
LOCAL_VALIDATION
A public core constructor rejected the value (local validation). -
AGGREGATE_VALIDATION
JsonApiDocumentValidatorrejected the document.
-
-
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
-