public class InvalidDefinitionException extends JsonMappingException
JsonMappingException
s
that are due to problems with target type definition; usually a problem with
annotations used on a class or its properties.
This is in contrast to MismatchedInputException
which
signals a problem with input to map.JsonMappingException.Reference
Modifier and Type | Field and Description |
---|---|
protected BeanDescription |
_beanDesc |
protected BeanPropertyDefinition |
_property |
protected JavaType |
_type |
_path, _processor
Modifier | Constructor and Description |
---|---|
protected |
InvalidDefinitionException(com.fasterxml.jackson.core.JsonGenerator g,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
protected |
InvalidDefinitionException(com.fasterxml.jackson.core.JsonGenerator g,
String msg,
JavaType type) |
protected |
InvalidDefinitionException(com.fasterxml.jackson.core.JsonParser p,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
protected |
InvalidDefinitionException(com.fasterxml.jackson.core.JsonParser p,
String msg,
JavaType type) |
Modifier and Type | Method and Description |
---|---|
static InvalidDefinitionException |
from(com.fasterxml.jackson.core.JsonGenerator g,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
static InvalidDefinitionException |
from(com.fasterxml.jackson.core.JsonGenerator g,
String msg,
JavaType type) |
static InvalidDefinitionException |
from(com.fasterxml.jackson.core.JsonParser p,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
static InvalidDefinitionException |
from(com.fasterxml.jackson.core.JsonParser p,
String msg,
JavaType type) |
BeanDescription |
getBeanDescription()
Accessor for type definition (class) that had the definition problem, if any; may sometimes
be undefined or unknown; if so, returns
null . |
BeanPropertyDefinition |
getProperty()
Accessor for property that had the definition problem if any
(none, for example if the problem relates to type in general),
if known.
|
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, withCause, wrapWithPath, wrapWithPath, wrapWithPath
clearLocation, getLocation, getMessageSuffix, getOriginalMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected final JavaType _type
protected transient BeanDescription _beanDesc
protected transient BeanPropertyDefinition _property
protected InvalidDefinitionException(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type)
protected InvalidDefinitionException(com.fasterxml.jackson.core.JsonGenerator g, String msg, JavaType type)
protected InvalidDefinitionException(com.fasterxml.jackson.core.JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop)
protected InvalidDefinitionException(com.fasterxml.jackson.core.JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop)
public static InvalidDefinitionException from(com.fasterxml.jackson.core.JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop)
public static InvalidDefinitionException from(com.fasterxml.jackson.core.JsonParser p, String msg, JavaType type)
public static InvalidDefinitionException from(com.fasterxml.jackson.core.JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop)
public static InvalidDefinitionException from(com.fasterxml.jackson.core.JsonGenerator g, String msg, JavaType type)
public JavaType getType()
null
public BeanDescription getBeanDescription()
null
.public BeanPropertyDefinition getProperty()
null
.Copyright © 2008–2022 FasterXML. All rights reserved.