public class ValueInstantiationException extends JsonMappingException
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.
JsonMappingException.Reference
Modifier and Type | Field and Description |
---|---|
protected JavaType |
_type |
_path, _processor
_location
Modifier | Constructor and Description |
---|---|
protected |
ValueInstantiationException(JsonParser p,
String msg,
JavaType type) |
protected |
ValueInstantiationException(JsonParser p,
String msg,
JavaType type,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static ValueInstantiationException |
from(JsonParser p,
String msg,
JavaType type) |
static ValueInstantiationException |
from(JsonParser p,
String msg,
JavaType type,
Throwable cause) |
JavaType |
getType()
Accessor for type fully resolved type that had the problem; this should always
known and available, never
null |
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
clearLocation, getLocation, getMessageSuffix, getOriginalMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected final JavaType _type
protected ValueInstantiationException(JsonParser p, String msg, JavaType type, Throwable cause)
protected ValueInstantiationException(JsonParser p, String msg, JavaType type)
public static ValueInstantiationException from(JsonParser p, String msg, JavaType type)
public static ValueInstantiationException from(JsonParser p, String msg, JavaType type, Throwable cause)
public JavaType getType()
null
Copyright © 2008–2020 FasterXML. All rights reserved.