public class UnrecognizedPropertyException extends JsonMappingException
JsonMappingException
sub-class specifically used
to indicate problems due to encountering a JSON property that could
not be mapped to an Object property (via getter, constructor argument
or field).JsonMappingException.Reference
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
_referringClass
Class that does not contain mapping for the unrecognized property.
|
protected java.lang.String |
_unrecognizedPropertyName
Note: redundant information since it is also included in the
reference path.
|
_path
mLocation
Constructor and Description |
---|
UnrecognizedPropertyException(java.lang.String msg,
JsonLocation loc,
java.lang.Class<?> referringClass,
java.lang.String propName) |
Modifier and Type | Method and Description |
---|---|
static UnrecognizedPropertyException |
from(JsonParser jp,
java.lang.Object fromObjectOrClass,
java.lang.String propertyName) |
java.lang.Class<?> |
getReferringClass()
Method for accessing type (class) that is missing definition to allow
binding of the unrecognized property.
|
java.lang.String |
getUnrecognizedPropertyName()
Convenience method for accessing logical property name that could
not be mapped.
|
_appendPathDesc, from, from, getMessage, getPath, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
getLocation
protected final java.lang.Class<?> _referringClass
protected final java.lang.String _unrecognizedPropertyName
Note: redundant information since it is also included in the reference path.
public UnrecognizedPropertyException(java.lang.String msg, JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName)
public static UnrecognizedPropertyException from(JsonParser jp, java.lang.Object fromObjectOrClass, java.lang.String propertyName)
public java.lang.Class<?> getReferringClass()
public java.lang.String getUnrecognizedPropertyName()