mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
Make the null check exception a little bit more explicit
Currently it is "NullPointerException: someFieldName" and that is not very telling as to the reasons this exception is thrown.
This commit is contained in:
1 parent
4fb9c6f7f8
commit
72f72395c7
1 file changed
+1
-1
@@ -35,7 +35,7 @@ public enum NullCheckExceptionType {
|
||||
},
|
||||
NULL_POINTER_EXCEPTION {
|
||||
@Override public String toExceptionMessage(String fieldName) {
|
||||
return fieldName;
|
||||
return fieldName + " is marked as @NonNull but is null";
|
||||
}
|
||||
|
||||
public String getExceptionType() {
|
||||
|
||||
Reference in new issue
Block a user