Module tools.jackson.databind
Package tools.jackson.databind.exc
Class UnrecognizedPropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.databind.DatabindException
tools.jackson.databind.exc.MismatchedInputException
tools.jackson.databind.exc.PropertyBindingException
tools.jackson.databind.exc.UnrecognizedPropertyException
- All Implemented Interfaces:
Serializable
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).- 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
ConstructorsConstructorDescriptionUnrecognizedPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) -
Method Summary
Modifier and TypeMethodDescriptionfrom(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
-
UnrecognizedPropertyException
public UnrecognizedPropertyException(JsonParser p, String msg, TokenStreamLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
-
-
Method Details
-
from
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- 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.
-