java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
tools.jackson.databind.exc.ValueInstantiationException
- All Implemented Interfaces:
Serializable
Exception type used for generic failures during processing by
ValueInstantiator:
commonly used to wrap exceptions thrown by constructor or factory
method.
Note that this type is sibling of MismatchedInputException and
InvalidDefinitionException since it is not clear if problem is
with input, or type definition (or possibly neither).
It is recommended that if either specific input, or type definition problem
is known, a more accurate exception is used instead.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
FieldsFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValueInstantiationException(JsonParser p, String msg, JavaType type) protectedValueInstantiationException(JsonParser p, String msg, JavaType type, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueInstantiationExceptionfrom(JsonParser p, String msg, JavaType type) static ValueInstantiationExceptionfrom(JsonParser p, String msg, JavaType type, Throwable cause) getType()Accessor for type fully resolved type that had the problem; this should always known and available, nevernullMethods inherited from class tools.jackson.databind.DatabindException
from, from, from, from, from, from, from, from, wrapWithPath, wrapWithPathMethods 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
-
Field Details
-
_type
-
-
Constructor Details
-
ValueInstantiationException
-
ValueInstantiationException
-
-
Method Details
-
from
-
from
public static ValueInstantiationException from(JsonParser p, String msg, JavaType type, Throwable cause) -
getType
Accessor for type fully resolved type that had the problem; this should always known and available, nevernull
-