public class UnrecognizedPropertyException extends PropertyBindingException
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
_propertiesAsString, _propertyIds, _propertyName, _referringClass
_path
Constructor and Description |
---|
UnrecognizedPropertyException(String msg,
com.fasterxml.jackson.core.JsonLocation loc,
Class<?> referringClass,
String propName,
Collection<Object> propertyIds) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getUnrecognizedPropertyName()
Deprecated.
Since 2.3, use
PropertyBindingException.getPropertyName() instead. |
getKnownPropertyIds, getMessageSuffix, getPropertyName, getReferringClass
_appendPathDesc, _buildMessage, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
getLocation, getOriginalMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public UnrecognizedPropertyException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
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.@Deprecated public String getUnrecognizedPropertyName()
PropertyBindingException.getPropertyName()
instead.Copyright © 2014–2015 FasterXML. All rights reserved.