File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
public class JSONException extends RuntimeException {
10
10
private static final long serialVersionUID = 0 ;
11
- private Throwable cause ;
12
11
13
12
/**
14
13
* Constructs a JSONException with an explanatory message.
15
14
*
16
15
* @param message
17
16
* Detail about the reason for the exception.
18
17
*/
19
- public JSONException (String message ) {
20
- super (message );
18
+ public JSONException (final String message ) {
19
+ super (message );
21
20
}
22
21
23
22
/**
24
23
* Constructs a new JSONException with the specified cause.
25
- * @param cause The cause.
24
+ *
25
+ * @param cause
26
+ * The cause.
26
27
*/
27
- public JSONException (Throwable cause ) {
28
- super (cause .getMessage ());
29
- this .cause = cause ;
28
+ public JSONException (final Throwable cause ) {
29
+ super (cause .getMessage (), cause );
30
30
}
31
31
32
- /**
33
- * Returns the cause of this exception or null if the cause is nonexistent
34
- * or unknown.
35
- *
36
- * @return the cause of this exception or null if the cause is nonexistent
37
- * or unknown.
38
- */
39
- @ Override
40
- public Throwable getCause () {
41
- return this .cause ;
42
- }
43
32
}
You can’t perform that action at this time.
0 commit comments