Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.exc

public Class ValueInstantiationException

extends JsonMappingException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType, .JsonMappingException

Exception type used for generic failures during processing by com.fasterxml.jackson.databind.deser.ValueInstantiator: commonly used to wrap exceptions thrown by constructor or factory method.

Note that this type is sibling of MismatchedInputException and InvalidDefinitionException since 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

Field Summary

Modifier and TypeField and Description
protected final JavaType
Inherited from com.fasterxml.jackson.databind.JsonMappingException:
_path_processor

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public static ValueInstantiationException
public static ValueInstantiationException
from(JsonParser p, String msg, JavaType type, Throwable cause)

public JavaType
getType()

Accessor for type fully resolved type that had the problem; this should always known and available, never null

Inherited from com.fasterxml.jackson.databind.JsonMappingException:
_appendPathDesc_buildMessagefromfromfromfromfromfromfromfromfromUnexpectedIOEgetLocalizedMessagegetMessagegetPathgetPathReferencegetPathReferencegetProcessorprependPathprependPathprependPathtoStringwithCausewrapWithPathwrapWithPathwrapWithPath

Field Detail

_typeback to summary
protected final JavaType _type

Constructor Detail

ValueInstantiationExceptionback to summary
protected ValueInstantiationException(JsonParser p, String msg, JavaType type, Throwable cause)
ValueInstantiationExceptionback to summary
protected ValueInstantiationException(JsonParser p, String msg, JavaType type)

Method Detail

fromback to summary
public static ValueInstantiationException from(JsonParser p, String msg, JavaType type)
fromback to summary
public static ValueInstantiationException from(JsonParser p, String msg, JavaType type, Throwable cause)
getTypeback to summary
public JavaType getType()

Accessor for type fully resolved type that had the problem; this should always known and available, never null