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| Modifier and Type | Field and Description | 
|---|---|
protected Class<?> | 
_targetType
Intended target type (type-erased class) that value could not
 be deserialized into, if known. 
 | 
protected Object | 
_value
Underlying value that could not be deserialized into
 target type, if available. 
 | 
_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)  | 
Class<?> | 
getTargetType()
Accessor for checking target type of value ( 
getValue() that failed
 to deserialize. | 
Object | 
getValue()
Accessor for checking source value (String, Number usually) that could not
 be deserialized into target type ( 
getTargetType()). | 
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPathgetLocation, getMessageSuffix, getOriginalMessage, getProcessoraddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected final Object _value
protected final Class<?> _targetType
@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()
getTargetType()).
 Note that value may not be available, depending on who throws the exception
 and when.public Class<?> getTargetType()
getValue() that failed
 to deserialize.
 Note that type may not be available, depending on who throws the exception
 and when.Copyright © 2008–2016 FasterXML. All rights reserved.