JsonMappingExceptions that are specifically related
to problems related to binding an individual property.
| Modifier and Type | Field and Description |
|---|---|
| protected transient String | _propertiesAsString
Lazily constructed description of known properties, used for constructing actual message if and as needed. |
| protected final Collection | _propertyIds
Set of ids of properties that are known for the type, if this can be statically determined. |
| protected final String | _propertyName
Note redundant information since it is also included in the reference path. |
| protected final Class | _referringClass
Class that does not contain mapping for the unrecognized property. |
| private static final int | MAX_DESC_LENGTH
Somewhat arbitrary limit, but let's try not to create uselessly huge error messages |
| Access | Constructor and Description |
|---|---|
| protected | PropertyBindingException(JsonParser p, String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
|
| protected | PropertyBindingException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
Deprecated
Since 2.7
|
| Modifier and Type | Method and Description |
|---|---|
| public Collection | |
| public String | getMessageSuffix()
Overrides com. |
| public String | |
| public Class | getReferringClass()
Method for accessing type (class) that is missing definition to allow binding of the unrecognized property. |
| _propertiesAsString | back to summary |
|---|---|
| protected transient String _propertiesAsString Lazily constructed description of known properties, used for constructing actual message if and as needed. | |
| _propertyIds | back to summary |
|---|---|
| protected final Collection<Object> _propertyIds Set of ids of properties that are known for the type, if this can be statically determined. | |
| _propertyName | back to summary |
|---|---|
| protected final String _propertyName Note redundant information since it is also included in the reference path. | |
| _referringClass | back to summary |
|---|---|
| protected final Class<?> _referringClass Class that does not contain mapping for the unrecognized property. | |
| MAX_DESC_LENGTH | back to summary |
|---|---|
| private static final int MAX_DESC_LENGTH Somewhat arbitrary limit, but let's try not to create uselessly huge error messages | |
| PropertyBindingException | back to summary |
|---|---|
protected PropertyBindingException(JsonParser p, String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
| |
| PropertyBindingException | back to summary |
|---|---|
| protected PropertyBindingException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
Deprecated Since 2.7
| |
| getKnownPropertyIds | back to summary |
|---|---|
| public Collection | |
| getMessageSuffix | back to summary |
|---|---|
| public String getMessageSuffix() Overrides com. Doc from com. Accessor that sub-classes can override to append additional information right after the main message, but before source location information. | |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Convenience method for accessing logical property name that could not be mapped. Note that it is the last path reference in the underlying path. | |
| getReferringClass | back to summary |
|---|---|
| public Class Method for accessing type (class) that is missing definition to allow binding of the unrecognized property. | |