java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
tools.jackson.databind.exc.MismatchedInputException
tools.jackson.databind.exc.InvalidFormatException
- All Implemented Interfaces:
Serializable
Specialized sub-class of
MismatchedInputException
that is used when the underlying problem appears to be that
of bad formatting of a value to deserialize.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ObjectUnderlying value that could not be deserialized into target type, if available.Fields inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, _targetTypeFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsConstructorDescriptionInvalidFormatException(JsonParser p, String msg, Object value, Class<?> targetType) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidFormatExceptionfrom(JsonParser p, String msg, Object value, Class<?> targetType) getValue()Accessor for checking source value (String, Number usually) that could not be deserialized into target type (MismatchedInputException.getTargetType()).Methods inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, from, from, getCurrentToken, getTargetType, setCurrentToken, setTargetTypeMethods 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
-
_value
Underlying value that could not be deserialized into target type, if available.
-
-
Constructor Details
-
InvalidFormatException
-
-
Method Details
-
from
public static InvalidFormatException from(JsonParser p, String msg, Object value, Class<?> targetType) -
getValue
Accessor for checking source value (String, Number usually) that could not be deserialized into target type (MismatchedInputException.getTargetType()). Note that value may not be available, depending on who throws the exception and when.
-