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, setTargetType
from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
clearLocation, 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)
JsonParser
public 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 - 2020 Adobe. All Rights Reserved