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 Class<?> |
_referringClass
Class that does not contain mapping for the unrecognized property.
|
protected String |
_unrecognizedPropertyName
Note: redundant information since it is also included in the
reference path.
|
_pathmLocation| Constructor and Description |
|---|
UnrecognizedPropertyException(String msg,
JsonLocation loc,
Class<?> referringClass,
String propName) |
| Modifier and Type | Method and Description |
|---|---|
static UnrecognizedPropertyException |
from(JsonParser jp,
Object fromObjectOrClass,
String propertyName) |
Class<?> |
getReferringClass()
Method for accessing type (class) that is missing definition to allow
binding of the unrecognized property.
|
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, wrapWithPathgetLocationaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected final Class<?> _referringClass
protected final String _unrecognizedPropertyName
Note: redundant information since it is also included in the reference path.
public UnrecognizedPropertyException(String msg, JsonLocation loc, Class<?> referringClass, String propName)
public static UnrecognizedPropertyException from(JsonParser jp, Object fromObjectOrClass, String propertyName)
public Class<?> getReferringClass()
public String getUnrecognizedPropertyName()