Class JsonReadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.JsonException
dev.langchain4j.exception.JsonReadException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JsonTypeNotAllowedException
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 Summary
ConstructorsConstructorDescriptionJsonReadException(String message, Throwable cause) JsonReadException(Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonReadException
-
JsonReadException
-