|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException com.fasterxml.jackson.core.JsonProcessingException com.fasterxml.jackson.databind.JsonMappingException com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
public class UnrecognizedPropertyException
Specialized 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).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException |
---|
JsonMappingException.Reference |
Field Summary | |
---|---|
protected String |
_propertiesAsString
Lazily constructed description of known properties, used for constructing actual message if and as needed. |
protected Collection<Object> |
_propertyIds
Set of ids of properties that are known for the type, if this can be statically determined. |
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. |
Fields inherited from class com.fasterxml.jackson.databind.JsonMappingException |
---|
_path |
Fields inherited from class com.fasterxml.jackson.core.JsonProcessingException |
---|
_location |
Constructor Summary | |
---|---|
UnrecognizedPropertyException(String msg,
com.fasterxml.jackson.core.JsonLocation loc,
Class<?> referringClass,
String propName,
Collection<Object> propertyIds)
|
Method Summary | |
---|---|
static UnrecognizedPropertyException |
from(com.fasterxml.jackson.core.JsonParser jp,
Object fromObjectOrClass,
String propertyName,
Collection<Object> propertyIds)
Factory method used for constructing instances of this exception type. |
Collection<Object> |
getKnownPropertyIds()
|
String |
getMessageSuffix()
|
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. |
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException |
---|
_appendPathDesc, _buildMessage, from, from, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath |
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException |
---|
getLocation |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Class<?> _referringClass
protected final String _unrecognizedPropertyName
Note: redundant information since it is also included in the reference path.
protected final Collection<Object> _propertyIds
protected transient String _propertiesAsString
Constructor Detail |
---|
public UnrecognizedPropertyException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
Method Detail |
---|
public static UnrecognizedPropertyException from(com.fasterxml.jackson.core.JsonParser jp, Object fromObjectOrClass, String propertyName, Collection<Object> propertyIds)
jp
- Underlying parser used for reading input being used for data-bindingfromObjectOrClass
- Reference to either instance of problematic type (
if available), or if not, type itselfpropertyName
- Name of unrecognized propertypropertyIds
- (optional, null if not available) Set of properties that
type would recognize, if completely known: null if set can not be determined.public String getMessageSuffix()
getMessageSuffix
in class com.fasterxml.jackson.core.JsonProcessingException
public Class<?> getReferringClass()
public String getUnrecognizedPropertyName()
public Collection<Object> getKnownPropertyIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |