public abstract class PropertyBindingException extends MismatchedInputException
JsonMappingException
s that are specifically related
to problems related to binding an individual property.JsonMappingException.Reference
Modifier and Type | Field and Description |
---|---|
protected String |
_propertiesAsString
Lazily constructed description of known properties, used for
constructing actual message if and as needed.
|
protected Collection<Object> |
_propertyIds
Set of ids of properties that are known for the type (see
_referringClass , if ids can be statically determined. |
protected String |
_propertyName
Name of property that has the problem being reported.
|
protected Class<?> |
_referringClass
Class that has the problem with mapping of a property (unrecognized,
missing, etc).
|
_targetType
_path, _processor
Modifier | Constructor and Description |
---|---|
protected |
PropertyBindingException(com.fasterxml.jackson.core.JsonParser p,
String msg,
com.fasterxml.jackson.core.JsonLocation loc,
Class<?> referringClass,
String propName,
Collection<Object> propertyIds) |
protected |
PropertyBindingException(String msg,
com.fasterxml.jackson.core.JsonLocation loc,
Class<?> referringClass,
String propName,
Collection<Object> propertyIds)
Deprecated.
Since 2.7
|
Modifier and Type | Method and Description |
---|---|
Collection<Object> |
getKnownPropertyIds() |
String |
getMessageSuffix() |
String |
getPropertyName()
Convenience method for accessing logical property name that could
not be mapped (see
_propertyName ). |
Class<?> |
getReferringClass()
Method for accessing type (class) that has the problematic property.
|
from, from, from, getTargetType, setTargetType
_appendPathDesc, _appendReferenceChain, _buildMessage, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath
clearLocation, getLocation, getOriginalMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected final Class<?> _referringClass
protected final String _propertyName
Note: possibly redundant information since it may also included in the reference path.
protected final Collection<Object> _propertyIds
_referringClass
, if ids can be statically determined.protected transient String _propertiesAsString
protected PropertyBindingException(com.fasterxml.jackson.core.JsonParser p, String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
@Deprecated protected PropertyBindingException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
public String getMessageSuffix()
getMessageSuffix
in class com.fasterxml.jackson.core.JsonProcessingException
public Class<?> getReferringClass()
public String getPropertyName()
_propertyName
).
Note that it is likely the last path reference in the underlying path
(but not necessarily, depending on the type of problem).public Collection<Object> getKnownPropertyIds()
Copyright © 2008–2024 FasterXML. All rights reserved.