Class JsonApiDocumentReadException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.kazforge.jsonapi.diagnostic.JsonApiDocumentReadException
All Implemented Interfaces:
Serializable

public final class JsonApiDocumentReadException extends RuntimeException
Failure while decoding or validating a JSON:API document.

Adapter-produced instances carry a stable CodecFailureCategory, a document-relative RFC 6901 JSON Pointer ("" for the document root), and a payload-safe best-effort SourceLocation. For CodecFailureCategory.LOCAL_VALIDATION and CodecFailureCategory.AGGREGATE_VALIDATION, ruleCode() carries the core ValidationRuleCode; codec failures do not invent one.

This family ends at validated core-document construction. Domain binding, resource mapping, registry, and representation failures use JsonApiMappingException instead.

See Also:
  • Constructor Details

  • Method Details

    • category

      public CodecFailureCategory category()
      Decoding or validation stage that failed.
    • jsonPointer

      public String jsonPointer()
      Document-relative JSON Pointer; "" identifies the document root.
    • sourceLocation

      public SourceLocation sourceLocation()
      Best-effort payload-safe source position, or SourceLocation.UNKNOWN.
    • ruleCode

      public @Nullable com.kazforge.jsonapi.core.validation.ValidationRuleCode ruleCode()
      Core validation rule when one was reported, otherwise null.