Class UnrecognizedPropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.fasterxml.jackson.core.JacksonException
com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.databind.DatabindException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.exc.MismatchedInputException
com.fasterxml.jackson.databind.exc.PropertyBindingException
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
- All Implemented Interfaces:
Serializable
Specialized
JsonMappingException 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 JsonMappingException
JsonMappingException.Reference -
Field Summary
Fields inherited from class PropertyBindingException
_propertiesAsString, _propertyIds, _propertyName, _referringClassFields inherited from class MismatchedInputException
_targetTypeFields inherited from class JsonMappingException
_path, _processorFields inherited from class com.fasterxml.jackson.core.JsonProcessingException
_location -
Constructor Summary
ConstructorsConstructorDescriptionUnrecognizedPropertyException(com.fasterxml.jackson.core.JsonParser p, String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) UnrecognizedPropertyException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) Deprecated.Since 2.7 -
Method Summary
Modifier and TypeMethodDescriptionfrom(com.fasterxml.jackson.core.JsonParser p, Object fromObjectOrClass, String propertyName, Collection<Object> propertyIds) Factory method used for constructing instances of this exception type.Methods inherited from class PropertyBindingException
getKnownPropertyIds, getMessageSuffix, getPropertyName, getReferringClassMethods inherited from class MismatchedInputException
from, from, from, getTargetType, setTargetTypeMethods inherited from class JsonMappingException
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getOriginalMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
UnrecognizedPropertyException
public UnrecognizedPropertyException(com.fasterxml.jackson.core.JsonParser p, String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) -
UnrecognizedPropertyException
@Deprecated public UnrecognizedPropertyException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) Deprecated.Since 2.7
-
-
Method Details
-
from
public static UnrecognizedPropertyException from(com.fasterxml.jackson.core.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.
-