Class InvalidNullException
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.InvalidNullException
- All Implemented Interfaces:
Serializable
Exception thrown if a `null` value is being encountered for a property
designed as "fail on null" property (see
JsonSetter).- Since:
- 2.9
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertyNameName of property, if known, for which null was encountered.Fields inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
_targetTypeFields inherited from class com.fasterxml.jackson.databind.JsonMappingException
_path, _processorFields inherited from class com.fasterxml.jackson.core.JsonProcessingException
_location -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidNullException(DeserializationContext ctxt, String msg, PropertyName pname) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidNullExceptionfrom(DeserializationContext ctxt, PropertyName name, JavaType type) Methods inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
from, from, from, getTargetType, setTargetTypeMethods inherited from class com.fasterxml.jackson.databind.JsonMappingException
_appendPathDesc, _appendReferenceChain, _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, getMessageSuffix, getOriginalMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
_propertyName
Name of property, if known, for which null was encountered.
-
-
Constructor Details
-
InvalidNullException
-
-
Method Details
-
from
public static InvalidNullException from(DeserializationContext ctxt, PropertyName name, JavaType type) -
getPropertyName
-