java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidDefinitionException,JsonNodeException,MismatchedInputException,MissingInjectableValueExcepion,UnresolvedForwardReference,ValueInstantiationException
Exception used to signal fatal problems with mapping of
content, distinct from low-level I/O problems (signaled using
simple
JacksonIOExceptions) or data encoding/decoding
problems (signaled with StreamReadException,
StreamWriteException).
One additional feature is the ability to denote relevant path of references (during serialization/deserialization) to help in troubleshooting.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
Fields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabindException(Closeable processor, String msg) protectedDatabindException(Closeable processor, String msg, Throwable problem) protectedDatabindException(Closeable processor, String msg, TokenStreamLocation loc) protectedDatabindException(Closeable processor, String msg, TokenStreamLocation loc, Throwable rootCause) protectedDatabindException(String msg) protectedDatabindException(String msg, TokenStreamLocation loc, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabindExceptionfrom(JsonGenerator g, String msg) static DatabindExceptionfrom(JsonGenerator g, String msg, Throwable problem) static DatabindExceptionfrom(JsonParser p, String msg) static DatabindExceptionfrom(JsonParser p, String msg, Throwable problem) static DatabindExceptionfrom(DeserializationContext ctxt, String msg) static DatabindExceptionfrom(DeserializationContext ctxt, String msg, Throwable problem) static DatabindExceptionfrom(SerializationContext ctxt, String msg) static DatabindExceptionfrom(SerializationContext ctxt, String msg, Throwable problem) static JacksonExceptionwrapWithPath(DeserializationContext ctxt, Throwable src, JacksonException.Reference ref) static JacksonExceptionwrapWithPath(SerializationContext ctxt, Throwable src, JacksonException.Reference ref) Methods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, processor, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DatabindException
-
DatabindException
-
DatabindException
-
DatabindException
protected DatabindException(Closeable processor, String msg, TokenStreamLocation loc, Throwable rootCause) -
DatabindException
-
DatabindException
-
-
Method Details
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
wrapWithPath
public static JacksonException wrapWithPath(DeserializationContext ctxt, Throwable src, JacksonException.Reference ref) -
wrapWithPath
public static JacksonException wrapWithPath(SerializationContext ctxt, Throwable src, JacksonException.Reference ref)
-