Class ValueInstantiationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.fasterxml.jackson.core.JsonProcessingException
-
- com.fasterxml.jackson.databind.JsonMappingException
-
- com.fasterxml.jackson.databind.exc.ValueInstantiationException
-
- All Implemented Interfaces:
Serializable
public class ValueInstantiationException extends JsonMappingException
Exception type used for generic failures during processing byValueInstantiator: commonly used to wrap exceptions thrown by constructor or factory method.Note that this type is sibling of
MismatchedInputExceptionandInvalidDefinitionExceptionsince it is not clear if problem is with input, or type definition (or possibly neither). It is recommended that if either specific input, or type definition problem is known, a more accurate exception is used instead.- Since:
- 2.10
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaType_type-
Fields inherited from class com.fasterxml.jackson.databind.JsonMappingException
_path, _processor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueInstantiationException(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type)protectedValueInstantiationException(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValueInstantiationExceptionfrom(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type)static ValueInstantiationExceptionfrom(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type, Throwable cause)JavaTypegetType()Accessor for type fully resolved type that had the problem; this should always known and available, nevernull-
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
-
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getMessageSuffix, getOriginalMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
_type
protected final JavaType _type
-
-
Method Detail
-
from
public static ValueInstantiationException from(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type)
-
from
public static ValueInstantiationException from(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type, Throwable cause)
-
getType
public JavaType getType()
Accessor for type fully resolved type that had the problem; this should always known and available, nevernull
-
-