public class IgnoredPropertyException extends PropertyBindingException
JsonMappingException sub-class used to indicate
case where an explicitly ignored property is encountered, and mapper
is configured to consider this an error.JsonMappingException.Reference_propertiesAsString, _propertyIds, _propertyName, _referringClass_path_location| Constructor and Description |
|---|
IgnoredPropertyException(String msg,
JsonLocation loc,
Class<?> referringClass,
String propName,
Collection<Object> propertyIds) |
| Modifier and Type | Method and Description |
|---|---|
static IgnoredPropertyException |
from(JsonParser jp,
Object fromObjectOrClass,
String propertyName,
Collection<Object> propertyIds)
Factory method used for constructing instances of this exception type.
|
getKnownPropertyIds, getMessageSuffix, getPropertyName, getReferringClass_appendPathDesc, _buildMessage, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPathgetLocation, getOriginalMessageaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic IgnoredPropertyException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
public static IgnoredPropertyException from(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.Copyright © 2016 JBoss by Red Hat. All rights reserved.