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 (see
|
| protected final String | _propertyName
Name of property that has the problem being reported. |
| protected final Class | _referringClass
Class that has the problem with mapping of a property (unrecognized, missing, etc). |
| 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. Accessor that sub-classes can override to append additional information right after the main message, but before source location information. |
| public String | getPropertyName()
Convenience method for accessing logical property name that could
not be mapped (see |
| public Class |
| _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 (see
| |
| _propertyName | back to summary |
|---|---|
| protected final String _propertyName Name of property that has the problem being reported. Note possibly redundant information since it may also included in the reference path. | |
| _referringClass | back to summary |
|---|---|
| protected final Class<?> _referringClass Class that has the problem with mapping of a property (unrecognized, missing, etc). | |
| 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 (see | |
| getReferringClass | back to summary |
|---|---|
| public Class Method for accessing type (class) that has the problematic property. | |