File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
src/main/java/tools/jackson/databind/exc Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 11package tools .jackson .databind .exc ;
22
3+ import tools .jackson .core .JsonParser ;
4+
35import tools .jackson .databind .DeserializationContext ;
46import tools .jackson .databind .JavaType ;
57import tools .jackson .databind .PropertyName ;
810/**
911 * Exception thrown if a `null` value is being encountered for a property
1012 * designed as "fail on null" property (see {@link com.fasterxml.jackson.annotation.JsonSetter}).
11- *
12- * @since 2.9
1313 */
1414public class InvalidNullException
15- extends MismatchedInputException // since 2.9
15+ extends MismatchedInputException
1616{
1717 private static final long serialVersionUID = 1L ; // silly Eclipse, warnings
1818
@@ -27,11 +27,18 @@ public class InvalidNullException
2727 /**********************************************************
2828 */
2929
30+ /**
31+ * @since 2.19
32+ */
33+ protected InvalidNullException (JsonParser p , String msg , PropertyName pname ) {
34+ super (p , msg );
35+ _propertyName = pname ;
36+ }
37+
3038 protected InvalidNullException (DeserializationContext ctxt , String msg ,
3139 PropertyName pname )
3240 {
33- super (ctxt == null ? null : ctxt .getParser (), msg );
34- _propertyName = pname ;
41+ this (ctxt == null ? null : ctxt .getParser (), msg , pname );
3542 }
3643
3744 public static InvalidNullException from (DeserializationContext ctxt ,
You can’t perform that action at this time.
0 commit comments