Top Description Fields Constructors Methods
tools.jackson.databind.exc

public Class UnrecognizedPropertyException

extends PropertyBindingException
Class Inheritance
Imports
java.util.*, tools.jackson.core.TokenStreamLocation, .JsonParser

Specialized PropertyBindingException 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).

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from tools.jackson.databind.exc.PropertyBindingException:
_propertiesAsString_propertyIds_propertyName_referringClass

Constructor Summary

AccessConstructor and Description
public
UnrecognizedPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)

Method Summary

Modifier and TypeMethod and Description
public static UnrecognizedPropertyException
from(JsonParser
Underlying parser used for reading input being used for data-binding
p
,
Object
Reference to either instance of problematic type ( if available), or if not, type itself
fromObjectOrClass
,
String
Name of unrecognized property
propertyName
,
Collection<Object>
(optional, null if not available) Set of properties that type would recognize, if completely known: null if set cannot be determined.
propertyIds
)

Factory method used for constructing instances of this exception type.

Inherited from tools.jackson.databind.exc.PropertyBindingException:
getKnownPropertyIdsgetPropertyNamegetReferringClassmessageSuffix

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.exc.MismatchedInputException.serialVersionUID.

Constructor Detail

UnrecognizedPropertyExceptionback to summary
public UnrecognizedPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)

Method Detail

fromback to summary
public static UnrecognizedPropertyException from(JsonParser p, Object fromObjectOrClass, String propertyName, Collection<Object> propertyIds)

Factory method used for constructing instances of this exception type.

Parameters
p:JsonParser

Underlying parser used for reading input being used for data-binding

fromObjectOrClass:Object

Reference to either instance of problematic type ( if available), or if not, type itself

propertyName:String

Name of unrecognized property

propertyIds:Collection<Object>

(optional, null if not available) Set of properties that type would recognize, if completely known: null if set cannot be determined.