java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
tools.jackson.databind.exc.InvalidDefinitionException
- All Implemented Interfaces:
Serializable
Intermediate exception type used as the base class for all
DatabindExceptions
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.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BeanDescriptionprotected BeanPropertyDefinitionprotected final JavaTypeFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidDefinitionException(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop) protectedInvalidDefinitionException(JsonGenerator g, String msg, JavaType type) protectedInvalidDefinitionException(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop) protectedInvalidDefinitionException(JsonParser p, String msg, JavaType type) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidDefinitionExceptionfrom(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop) static InvalidDefinitionExceptionfrom(JsonGenerator g, String msg, JavaType type) static InvalidDefinitionExceptionfrom(JsonParser p, String msg, BeanDescription.Supplier beanDescRef, BeanPropertyDefinition prop) static InvalidDefinitionExceptionfrom(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop) static InvalidDefinitionExceptionfrom(JsonParser p, String msg, JavaType type) Accessor for type definition (class) that had the definition problem, if any; may sometimes be undefined or unknown; if so, returnsnull.Accessor for property that had the definition problem if any (none, for example if the problem relates to type in general), if known.getType()Accessor for type fully resolved type that had the problem; this should always known and available, nevernullMethods inherited from class tools.jackson.databind.DatabindException
from, from, from, from, from, from, from, from, wrapWithPath, wrapWithPathMethods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, processor, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
_type
-
_beanDesc
-
_property
-
-
Constructor Details
-
InvalidDefinitionException
-
InvalidDefinitionException
-
InvalidDefinitionException
protected InvalidDefinitionException(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop) -
InvalidDefinitionException
protected InvalidDefinitionException(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop)
-
-
Method Details
-
from
public static InvalidDefinitionException from(JsonParser p, String msg, BeanDescription bean, BeanPropertyDefinition prop) -
from
public static InvalidDefinitionException from(JsonParser p, String msg, BeanDescription.Supplier beanDescRef, BeanPropertyDefinition prop) -
from
-
from
public static InvalidDefinitionException from(JsonGenerator g, String msg, BeanDescription bean, BeanPropertyDefinition prop) -
from
-
getType
Accessor for type fully resolved type that had the problem; this should always known and available, nevernull -
getBeanDescription
Accessor for type definition (class) that had the definition problem, if any; may sometimes be undefined or unknown; if so, returnsnull. -
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), returnsnull.
-