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 PropertyNameName of property, if known, for which null was encountered.Fields inherited from class tools.jackson.databind.exc.MismatchedInputException
_currentToken, _targetTypeFields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidNullException(JsonParser p, String msg, PropertyName pname) protectedInvalidNullException(DeserializationContext ctxt, String msg, PropertyName pname) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidNullExceptionfrom(DeserializationContext ctxt, PropertyName name, JavaType type) Methods 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, messageSuffix, 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
-
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
-