Class JsonReadException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JsonTypeNotAllowedException

public class JsonReadException extends JsonException
Thrown when JSON cannot be read: it is malformed, or it does not describe the expected type.

The input is usually not ours - a model's answer, a provider's response, a stored document - so this is often recoverable: reprompt, retry, or report it to the user.

See Also:
  • Constructor Details

    • JsonReadException

      public JsonReadException(Throwable cause)
    • JsonReadException

      public JsonReadException(String message, Throwable cause)