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| Constructor and Description |
|---|
InvalidFormatException(JsonParser p,
java.lang.String msg,
java.lang.Object value,
java.lang.Class<?> targetType) |
InvalidFormatException(java.lang.String msg,
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(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, setTargetTypefrom, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPathclearLocation, getLocation, getOriginalMessage@Deprecated
public InvalidFormatException(java.lang.String msg,
java.lang.Object value,
java.lang.Class<?> targetType)
JsonParser@Deprecated
public InvalidFormatException(java.lang.String msg,
JsonLocation loc,
java.lang.Object value,
java.lang.Class<?> targetType)
JsonParserpublic InvalidFormatException(JsonParser p, java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
public static InvalidFormatException from(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.Copyright © 2010 - 2023 Adobe. All Rights Reserved