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 Object |
_value
Underlying value that could not be deserialized into
target type, if available.
|
_targetType_path, _processor_location| Constructor and Description |
|---|
InvalidFormatException(JsonParser p,
String msg,
Object value,
Class<?> targetType) |
InvalidFormatException(String msg,
JsonLocation loc,
Object value,
Class<?> targetType)
Deprecated.
Since 2.7 Use variant that takes
JsonParser |
InvalidFormatException(String msg,
Object value,
Class<?> targetType)
Deprecated.
Since 2.7 Use variant that takes
JsonParser |
| Modifier and Type | Method and Description |
|---|---|
static InvalidFormatException |
from(JsonParser p,
String msg,
Object value,
Class<?> targetType) |
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, withCause, wrapWithPath, wrapWithPath, wrapWithPathclearLocation, getLocation, getMessageSuffix, getOriginalMessageaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected final Object _value
@Deprecated public InvalidFormatException(String msg, Object value, Class<?> targetType)
JsonParser@Deprecated public InvalidFormatException(String msg, JsonLocation loc, Object value, Class<?> targetType)
JsonParserpublic InvalidFormatException(JsonParser p, String msg, Object value, Class<?> targetType)
public static InvalidFormatException from(JsonParser p, String msg, Object value, Class<?> targetType)
public Object getValue()
MismatchedInputException.getTargetType()).
Note that value may not be available, depending on who throws the exception
and when.Copyright © 2008–2022 FasterXML. All rights reserved.