@@ -49,7 +49,7 @@ public ExpressionException(String message) {
49
49
* @param message a descriptive message
50
50
* @param cause the underlying cause of this exception
51
51
*/
52
- public ExpressionException (String message , Throwable cause ) {
52
+ public ExpressionException (String message , @ Nullable Throwable cause ) {
53
53
super (message , cause );
54
54
this .expressionString = null ;
55
55
this .position = 0 ;
@@ -95,7 +95,7 @@ public ExpressionException(int position, String message) {
95
95
* @param message a descriptive message
96
96
* @param cause the underlying cause of this exception
97
97
*/
98
- public ExpressionException (int position , String message , Throwable cause ) {
98
+ public ExpressionException (int position , String message , @ Nullable Throwable cause ) {
99
99
super (message , cause );
100
100
this .expressionString = null ;
101
101
this .position = position ;
@@ -124,6 +124,7 @@ public final int getPosition() {
124
124
* @see java.lang.Throwable#getMessage()
125
125
*/
126
126
@ Override
127
+ @ Nullable
127
128
public String getMessage () {
128
129
return toDetailedString ();
129
130
}
@@ -132,6 +133,7 @@ public String getMessage() {
132
133
* Return a detailed description of this exception, including the expression
133
134
* String and position (if available) as well as the actual exception message.
134
135
*/
136
+ @ Nullable
135
137
public String toDetailedString () {
136
138
if (this .expressionString != null ) {
137
139
StringBuilder output = new StringBuilder ();
@@ -156,6 +158,7 @@ public String toDetailedString() {
156
158
* that caused the failure.
157
159
* @since 4.0
158
160
*/
161
+ @ Nullable
159
162
public String getSimpleMessage () {
160
163
return super .getMessage ();
161
164
}
0 commit comments