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| 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.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()). |
from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPathgetLocation, 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()
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."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"