Class PropertyBindingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.fasterxml.jackson.core.JacksonException
-
- com.fasterxml.jackson.core.JsonProcessingException
-
- com.fasterxml.jackson.databind.DatabindException
-
- com.fasterxml.jackson.databind.JsonMappingException
-
- com.fasterxml.jackson.databind.exc.MismatchedInputException
-
- com.fasterxml.jackson.databind.exc.PropertyBindingException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IgnoredPropertyException
,UnrecognizedPropertyException
public abstract class PropertyBindingException extends MismatchedInputException
Base class forJsonMappingException
s that are specifically related to problems related to binding an individual property.- Since:
- 2.3
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_propertiesAsString
Lazily constructed description of known properties, used for constructing actual message if and as needed.protected java.util.Collection<java.lang.Object>
_propertyIds
Set of ids of properties that are known for the type (see_referringClass
, if ids can be statically determined.protected java.lang.String
_propertyName
Name of property that has the problem being reported.protected java.lang.Class<?>
_referringClass
Class that has the problem with mapping of a property (unrecognized, missing, etc).-
Fields inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
_targetType
-
Fields inherited from class com.fasterxml.jackson.databind.JsonMappingException
_path, _processor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyBindingException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
protected
PropertyBindingException(java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
Deprecated.Since 2.7
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.Object>
getKnownPropertyIds()
java.lang.String
getMessageSuffix()
java.lang.String
getPropertyName()
Convenience method for accessing logical property name that could not be mapped (see_propertyName
).java.lang.Class<?>
getReferringClass()
Method for accessing type (class) that has the problematic property.-
Methods inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
from, from, from, getTargetType, setTargetType
-
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException
_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
-
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getOriginalMessage
-
-
-
-
Field Detail
-
_referringClass
protected final java.lang.Class<?> _referringClass
Class that has the problem with mapping of a property (unrecognized, missing, etc).
-
_propertyName
protected final java.lang.String _propertyName
Name of property that has the problem being reported.Note: possibly redundant information since it may also included in the reference path.
-
_propertyIds
protected final java.util.Collection<java.lang.Object> _propertyIds
Set of ids of properties that are known for the type (see_referringClass
, if ids can be statically determined.
-
_propertiesAsString
protected transient java.lang.String _propertiesAsString
Lazily constructed description of known properties, used for constructing actual message if and as needed.
-
-
Constructor Detail
-
PropertyBindingException
protected PropertyBindingException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
- Since:
- 2.7
-
PropertyBindingException
@Deprecated protected PropertyBindingException(java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
Deprecated.Since 2.7
-
-
Method Detail
-
getMessageSuffix
public java.lang.String getMessageSuffix()
- Overrides:
getMessageSuffix
in classcom.fasterxml.jackson.core.JsonProcessingException
-
getReferringClass
public java.lang.Class<?> getReferringClass()
Method for accessing type (class) that has the problematic property.
-
getPropertyName
public java.lang.String 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
public java.util.Collection<java.lang.Object> getKnownPropertyIds()
-
-