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
,UnresolvedForwardReference
,ValueInstantiationException
public class DatabindException
extends tools.jackson.core.JacksonException
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
tools.jackson.core.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, tools.jackson.core.TokenStreamLocation loc) protected
DatabindException
(String msg) protected
DatabindException
(String msg, tools.jackson.core.TokenStreamLocation loc, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabindException
static DatabindException
static DatabindException
static DatabindException
static DatabindException
from
(DeserializationContext ctxt, String msg) static DatabindException
from
(SerializationContext ctxt, String msg) static DatabindException
from
(SerializationContext ctxt, String msg, Throwable problem) Methods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, processor, toString, withCause, 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
-
DatabindException
-
-
Method Details
-
from
-
from
public static DatabindException from(tools.jackson.core.JsonParser p, String msg, Throwable problem) -
from
-
from
public static DatabindException from(tools.jackson.core.JsonGenerator g, String msg, Throwable problem) -
from
-
from
-
from
-