Class InvalidFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.fasterxml.jackson.core.JacksonException
-
- com.fasterxml.jackson.core.JsonProcessingException
-
- com.fasterxml.jackson.databind.DatabindException
-
- com.fasterxml.jackson.databind.JsonMappingException
-
- com.fasterxml.jackson.databind.exc.MismatchedInputException
-
- com.fasterxml.jackson.databind.exc.InvalidFormatException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidFormatException extends MismatchedInputException
Specialized sub-class ofMismatchedInputException
that is used when the underlying problem appears to be that of bad formatting of a value to deserialize.- Since:
- 2.1
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference
-
-
Constructor Summary
Constructors Constructor 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 takesJsonParser
InvalidFormatException(java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
Deprecated.Since 2.7 Use variant that takesJsonParser
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
).-
Methods inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
from, from, from, getTargetType, setTargetType
-
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException
from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath
-
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getOriginalMessage
-
-
-
-
Constructor Detail
-
InvalidFormatException
@Deprecated public InvalidFormatException(java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
Deprecated.Since 2.7 Use variant that takesJsonParser
-
InvalidFormatException
@Deprecated public InvalidFormatException(java.lang.String msg, JsonLocation loc, java.lang.Object value, java.lang.Class<?> targetType)
Deprecated.Since 2.7 Use variant that takesJsonParser
-
InvalidFormatException
public InvalidFormatException(JsonParser p, java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
- Since:
- 2.7
-
-
Method Detail
-
from
public static InvalidFormatException from(JsonParser p, java.lang.String msg, java.lang.Object value, java.lang.Class<?> targetType)
-
getValue
public java.lang.Object getValue()
Accessor for checking source value (String, Number usually) that could not be deserialized into target type (MismatchedInputException.getTargetType()
). Note that value may not be available, depending on who throws the exception and when.
-
-