public class InvalidFormatException extends MismatchedInputException
MismatchedInputException
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.Object |
_value
Underlying value that could not be deserialized into
target type, if available.
|
private static long |
serialVersionUID |
_targetType
_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.Object |
getValue()
Accessor for checking source value (String, Number usually) that could not
be deserialized into target type (
MismatchedInputException.getTargetType() ). |
from, from, from, getTargetType, setTargetType
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
clearLocation, getLocation, getMessageSuffix, getOriginalMessage
private static final long serialVersionUID
protected final java.lang.Object _value
@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()
MismatchedInputException.getTargetType()
).
Note that value may not be available, depending on who throws the exception
and when.