- All Implemented Interfaces:
Serializable
Specialized
DatabindException sub-class used to indicate
case where an explicitly ignored property is encountered, and mapper
is configured to consider this an error.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
Fields inherited from class tools.jackson.databind.exc.PropertyBindingException
_propertiesAsString, _propertyIds, _propertyName, _referringClassFields inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, _targetTypeFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsConstructorDescriptionIgnoredPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) -
Method Summary
Modifier and TypeMethodDescriptionstatic IgnoredPropertyExceptionfrom(JsonParser p, Object fromObjectOrClass, String propertyName, Collection<Object> propertyIds) Factory method used for constructing instances of this exception type.Methods inherited from class tools.jackson.databind.exc.PropertyBindingException
getKnownPropertyIds, getPropertyName, getReferringClass, messageSuffixMethods inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, from, from, getCurrentToken, getTargetType, setCurrentToken, setTargetTypeMethods inherited from class tools.jackson.databind.DatabindException
from, from, from, from, from, from, from, from, wrapWithPath, wrapWithPathMethods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, prependPath, prependPath, prependPath, processor, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
IgnoredPropertyException
public IgnoredPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
-
-
Method Details
-
from
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- 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 cannot be determined.
-