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:
java.io.Serializable
public class UnrecognizedPropertyException extends PropertyBindingException
SpecializedJsonMappingException
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference
-
-
Constructor Summary
Constructors Constructor Description UnrecognizedPropertyException(JsonParser p, java.lang.String msg, JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
UnrecognizedPropertyException(java.lang.String msg, JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
Deprecated.Since 2.7
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnrecognizedPropertyException
from(JsonParser p, java.lang.Object fromObjectOrClass, java.lang.String propertyName, java.util.Collection<java.lang.Object> propertyIds)
Factory method used for constructing instances of this exception type.-
Methods inherited from class com.fasterxml.jackson.databind.exc.PropertyBindingException
getKnownPropertyIds, getMessageSuffix, getPropertyName, getReferringClass
-
Methods inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
from, from, from, getTargetType, setTargetType
-
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException
from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath
-
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getOriginalMessage
-
-
-
-
Constructor Detail
-
UnrecognizedPropertyException
public UnrecognizedPropertyException(JsonParser p, java.lang.String msg, JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
-
UnrecognizedPropertyException
@Deprecated public UnrecognizedPropertyException(java.lang.String msg, JsonLocation loc, java.lang.Class<?> referringClass, java.lang.String propName, java.util.Collection<java.lang.Object> propertyIds)
Deprecated.Since 2.7
-
-
Method Detail
-
from
public static UnrecognizedPropertyException from(JsonParser p, java.lang.Object fromObjectOrClass, java.lang.String propertyName, java.util.Collection<java.lang.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.
-
-