public class InvalidFormatException extends JsonMappingException
JsonMappingException
that is used when the underlying problem appears to be that
of bad formatting of a value to deserialize.JsonMappingException.Reference
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
_targetType
Intended target type (type-erased class) that value could not
be deserialized into, if known.
|
protected java.lang.Object |
_value
Underlying value that could not be deserialized into
target type, if available.
|
private static long |
serialVersionUID |
_path, _processor
Constructor and Description |
---|
InvalidFormatException(com.fasterxml.jackson.core.JsonParser p,
java.lang.String msg,
java.lang.Object value,
java.lang.Class<?> targetType) |
InvalidFormatException(java.lang.String msg,
com.fasterxml.jackson.core.JsonLocation loc,
java.lang.Object value,
java.lang.Class<?> targetType)
Deprecated.
Since 2.7 Use variant that takes
JsonParser |
InvalidFormatException(java.lang.String msg,
java.lang.Object value,
java.lang.Class<?> targetType)
Deprecated.
Since 2.7 Use variant that takes
JsonParser |
Modifier and Type | Method and Description |
---|---|
static InvalidFormatException |
from(com.fasterxml.jackson.core.JsonParser p,
java.lang.String msg,
java.lang.Object value,
java.lang.Class<?> targetType) |
java.lang.Class<?> |
getTargetType()
Accessor for checking target type of value (
getValue() that failed
to deserialize. |
java.lang.Object |
getValue()
Accessor for checking source value (String, Number usually) that could not
be deserialized into target type (
getTargetType() ). |
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
getLocation, getMessageSuffix, getOriginalMessage
private static final long serialVersionUID
protected final java.lang.Object _value
protected final java.lang.Class<?> _targetType
@Deprecated public InvalidFormatException(java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
JsonParser
@Deprecated public InvalidFormatException(java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Object value, java.lang.Class<?> targetType)
JsonParser
public InvalidFormatException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
public static InvalidFormatException from(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
public java.lang.Object getValue()
getTargetType()
).
Note that value may not be available, depending on who throws the exception
and when.public java.lang.Class<?> getTargetType()
getValue()
that failed
to deserialize.
Note that type may not be available, depending on who throws the exception
and when.