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.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
).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertyName
Name of property, if known, for which null was encountered.Fields inherited from class tools.jackson.databind.exc.MismatchedInputException
_targetType
Fields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InvalidNullException
(JsonParser p, String msg, PropertyName pname) protected
InvalidNullException
(DeserializationContext ctxt, String msg, PropertyName pname) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidNullException
from
(DeserializationContext ctxt, PropertyName name, JavaType type) Methods inherited from class tools.jackson.databind.exc.MismatchedInputException
from, from, getTargetType, setTargetType
Methods inherited from class tools.jackson.databind.DatabindException
from, from, from, from, from, from, from, from, wrapWithPath, wrapWithPath
Methods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, processor, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPath
Methods 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
- Since:
- 2.19
-
InvalidNullException
-
-
Method Details
-
from
public static InvalidNullException from(DeserializationContext ctxt, PropertyName name, JavaType type) -
getPropertyName
-