Serializablepublic 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 | Description |
|---|---|---|
protected Object |
_value |
Underlying value that could not be deserialized into
target type, if available.
|
_path, _processor_targetType| Constructor | Description |
|---|---|
InvalidFormatException(com.fasterxml.jackson.core.JsonParser p,
String msg,
Object value,
Class<?> targetType) |
|
InvalidFormatException(String msg,
com.fasterxml.jackson.core.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 | Description |
|---|---|---|
static InvalidFormatException |
from(com.fasterxml.jackson.core.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()). |
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPathclearLocation, getLocation, getMessageSuffix, getOriginalMessagefrom, from, from, getTargetType, setTargetTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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, com.fasterxml.jackson.core.JsonLocation loc, Object value, Class<?> targetType)
JsonParserpublic static InvalidFormatException from(com.fasterxml.jackson.core.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–2018. All rights reserved.