Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.exc

public Class IgnoredPropertyException

extends PropertyBindingException
Class Inheritance
Imports
java.util.*, com.fasterxml.jackson.core.JsonLocation, .JsonParser, com.fasterxml.jackson.databind.JsonMappingException

Specialized JsonMappingException sub-class used to indicate case where an explicitly ignored property is encountered, and mapper is configured to consider this an error.
Since
2.3

Field Summary

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

Constructor Summary

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

public
IgnoredPropertyException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)

Deprecated Since 2.7

Method Summary

Modifier and TypeMethod and Description
public static IgnoredPropertyException
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 com.fasterxml.jackson.databind.exc.PropertyBindingException:
getKnownPropertyIdsgetMessageSuffixgetPropertyNamegetReferringClass

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.JsonMappingException.serialVersionUID.

Constructor Detail

IgnoredPropertyExceptionback to summary
public IgnoredPropertyException(JsonParser p, String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
Since
2.7
IgnoredPropertyExceptionback to summary
public IgnoredPropertyException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)

Deprecated

Since 2.7

Annotations
@Deprecated

Method Detail

fromback to summary
public static IgnoredPropertyException 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.