Class JsonTypeNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.JsonException
dev.langchain4j.exception.JsonReadException
dev.langchain4j.exception.JsonTypeNotAllowedException
- All Implemented Interfaces:
Serializable
Thrown when JSON that carries type information names a type the reader is not allowed to
instantiate.
This is a refusal rather than a failure: the document is well formed, but honouring it would mean constructing whatever it asked for. Register the type if it is one of yours.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonTypeNotAllowedException
-
-
Method Details
-
typeId
The type named in the document, as it was named there.
-