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

public Class InvalidDefinitionException

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

Intermediate exception type used as the base class for all JsonMappingExceptions 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.
Since
2.9

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected
protected
protected
protected

Method Summary

Modifier and TypeMethod and Description
public static InvalidDefinitionException
public static InvalidDefinitionException
public static InvalidDefinitionException
public static InvalidDefinitionException
public BeanDescription
getBeanDescription()

Accessor for type definition (class) that had the definition problem, if any; may sometimes be undefined or unknown; if so, returns null.

public 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.

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

_beanDescback to summary
protected transient BeanDescription _beanDesc
_propertyback to summary
protected transient BeanPropertyDefinition _property
_typeback to summary
protected final JavaType _type

Constructor Detail

InvalidDefinitionExceptionback to summary
protected InvalidDefinitionException(JsonParser p, String msg, JavaType type)
InvalidDefinitionExceptionback to summary
protected InvalidDefinitionException(JsonGenerator g, String msg, JavaType type)
InvalidDefinitionExceptionback to summary
protected InvalidDefinitionException(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop)
InvalidDefinitionExceptionback to summary
protected InvalidDefinitionException(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop)

Method Detail

fromback to summary
public static InvalidDefinitionException from(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop)
fromback to summary
public static InvalidDefinitionException from(JsonParser p, String msg, JavaType type)
fromback to summary
public static InvalidDefinitionException from(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop)
fromback to summary
public static InvalidDefinitionException from(JsonGenerator g, String msg, JavaType type)
getBeanDescriptionback to summary
public BeanDescription getBeanDescription()

Accessor for type definition (class) that had the definition problem, if any; may sometimes be undefined or unknown; if so, returns null.

getPropertyback to summary
public 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. If not known (or relevant), returns null.

getTypeback to summary
public JavaType getType()

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