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
JacksonIOException
s) 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
ConstructorsModifierConstructorDescriptionprotected
DatabindException
(Closeable processor, String msg) protected
DatabindException
(Closeable processor, String msg, Throwable problem) protected
DatabindException
(Closeable processor, String msg, TokenStreamLocation loc) protected
DatabindException
(Closeable processor, String msg, TokenStreamLocation loc, Throwable rootCause) protected
DatabindException
(String msg) protected
DatabindException
(String msg, TokenStreamLocation loc, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabindException
from
(JsonGenerator g, String msg) static DatabindException
from
(JsonGenerator g, String msg, Throwable problem) static DatabindException
from
(JsonParser p, String msg) static DatabindException
from
(JsonParser p, String msg, Throwable problem) static DatabindException
from
(DeserializationContext ctxt, String msg) static DatabindException
from
(DeserializationContext ctxt, String msg, Throwable problem) static DatabindException
from
(SerializationContext ctxt, String msg) static DatabindException
from
(SerializationContext ctxt, String msg, Throwable problem) static JacksonException
wrapWithPath
(DeserializationContext ctxt, Throwable src, JacksonException.Reference ref) static JacksonException
wrapWithPath
(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, wrapWithPath
Methods 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)
-