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:
DeferredBindingException,InvalidDefinitionException,JsonNodeException,MismatchedInputException,MissingInjectableValueExcepion,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
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
tools.jackson.core.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, tools.jackson.core.TokenStreamLocation loc) protectedDatabindException(Closeable processor, String msg, tools.jackson.core.TokenStreamLocation loc, Throwable rootCause) protectedDatabindException(String msg) protectedDatabindException(String msg, tools.jackson.core.TokenStreamLocation loc, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabindExceptionstatic DatabindExceptionstatic DatabindExceptionstatic DatabindExceptionstatic 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 tools.jackson.core.JacksonExceptionwrapWithPath(DeserializationContext ctxt, Throwable src, tools.jackson.core.JacksonException.Reference ref) static tools.jackson.core.JacksonExceptionwrapWithPath(SerializationContext ctxt, Throwable src, tools.jackson.core.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
-
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
-
from
-
wrapWithPath
public static tools.jackson.core.JacksonException wrapWithPath(DeserializationContext ctxt, Throwable src, tools.jackson.core.JacksonException.Reference ref) -
wrapWithPath
public static tools.jackson.core.JacksonException wrapWithPath(SerializationContext ctxt, Throwable src, tools.jackson.core.JacksonException.Reference ref)
-