Enum Class CodecFailureCategory

java.lang.Object
java.lang.Enum<CodecFailureCategory>
com.kazforge.jsonapi.diagnostic.CodecFailureCategory
All Implemented Interfaces:
Serializable, Comparable<CodecFailureCategory>, Constable

public enum CodecFailureCategory extends Enum<CodecFailureCategory>
Stable decoding or validation stage for a JsonApiDocumentReadException.
  • Enum Constant Details

    • MALFORMED_JSON

      public static final CodecFailureCategory MALFORMED_JSON
      Input is not well-formed JSON.
    • UNEXPECTED_TOKEN

      public static final CodecFailureCategory UNEXPECTED_TOKEN
      A JSON token was present where a different token kind was required.
    • DUPLICATE_MEMBER

      public static final CodecFailureCategory DUPLICATE_MEMBER
      A JSON object repeated the same member name.
    • LOCAL_VALIDATION

      public static final CodecFailureCategory LOCAL_VALIDATION
      A public core constructor rejected the value (local validation).
    • AGGREGATE_VALIDATION

      public static final CodecFailureCategory AGGREGATE_VALIDATION
      JsonApiDocumentValidator rejected the document.
  • Method Details

    • values

      public static CodecFailureCategory[] 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

      public static CodecFailureCategory valueOf(String name)
      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 name
      NullPointerException - if the argument is null