java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
tools.jackson.databind.exc.MismatchedInputException
tools.jackson.databind.exc.PropertyBindingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IgnoredPropertyException,UnrecognizedPropertyException
Base class for
MismatchedInputExceptions that are specifically related
to problems related to binding an individual property.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringLazily constructed description of known properties, used for constructing actual message if and as needed.protected final Collection<Object>Set of ids of properties that are known for the type (see_referringClass, if ids can be statically determined.protected final StringName of property that has the problem being reported.protected final Class<?>Class that has the problem with mapping of a property (unrecognized, missing, etc).Fields inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, _targetTypeFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyBindingException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) -
Method Summary
Modifier and TypeMethodDescriptionConvenience method for accessing logical property name that could not be mapped (see_propertyName).Class<?>Method for accessing type (class) that has the problematic property.Methods inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, from, from, getCurrentToken, getTargetType, setCurrentToken, setTargetTypeMethods 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, 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
-
_referringClass
Class that has the problem with mapping of a property (unrecognized, missing, etc). -
_propertyName
Name of property that has the problem being reported.Note: possibly redundant information since it may also included in the reference path.
-
_propertyIds
Set of ids of properties that are known for the type (see_referringClass, if ids can be statically determined. -
_propertiesAsString
Lazily constructed description of known properties, used for constructing actual message if and as needed.
-
-
Constructor Details
-
PropertyBindingException
protected PropertyBindingException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
-
-
Method Details
-
messageSuffix
- Overrides:
messageSuffixin classJacksonException
-
getReferringClass
Method for accessing type (class) that has the problematic property. -
getPropertyName
Convenience method for accessing logical property name that could not be mapped (see_propertyName). Note that it is likely the last path reference in the underlying path (but not necessarily, depending on the type of problem). -
getKnownPropertyIds
-