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
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
_propertiesAsString, _propertyIds, _propertyName, _referringClass
_path, _processor
Constructor and Description |
---|
UnrecognizedPropertyException(com.fasterxml.jackson.core.JsonParser p,
java.lang.String msg,
com.fasterxml.jackson.core.JsonLocation loc,
java.lang.Class<?> referringClass,
java.lang.String propName,
java.util.Collection<java.lang.Object> propertyIds) |
UnrecognizedPropertyException(java.lang.String msg,
com.fasterxml.jackson.core.JsonLocation loc,
java.lang.Class<?> referringClass,
java.lang.String propName,
java.util.Collection<java.lang.Object> propertyIds)
Deprecated.
Since 2.7
|
Modifier and Type | Method and Description |
---|---|
static UnrecognizedPropertyException |
from(com.fasterxml.jackson.core.JsonParser p,
java.lang.Object fromObjectOrClass,
java.lang.String propertyName,
java.util.Collection<java.lang.Object> propertyIds)
Factory method used for constructing instances of this exception type.
|
getKnownPropertyIds, getMessageSuffix, getPropertyName, getReferringClass
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
getLocation, getOriginalMessage
private static final long serialVersionUID
public UnrecognizedPropertyException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
@Deprecated public UnrecognizedPropertyException(java.lang.String msg, com.fasterxml.jackson.core.JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
public static UnrecognizedPropertyException from(com.fasterxml.jackson.core.JsonParser p, java.lang.Object fromObjectOrClass, java.lang.String propertyName, java.util.Collection<java.lang.Object> propertyIds)
p
- 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.