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
限定符和类型 | 字段和说明 |
---|---|
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.
|
_path
mLocation
构造器和说明 |
---|
UnrecognizedPropertyException(String msg,
JsonLocation loc,
Class<?> referringClass,
String propName) |
限定符和类型 | 方法和说明 |
---|---|
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, wrapWithPath
getLocation
protected 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()