File tree 1 file changed +38
-28
lines changed
1 file changed +38
-28
lines changed Original file line number Diff line number Diff line change 1
- package org .json ;
2
-
3
- /**
4
- * The JSONException is thrown by the JSON.org classes when things are amiss.
5
- * @author JSON.org
6
- * @version 2010-12-24
7
- */
8
- public class JSONException extends Exception {
9
- private static final long serialVersionUID = 0 ;
10
- private Throwable cause ;
11
-
12
- /**
13
- * Constructs a JSONException with an explanatory message.
14
- * @param message Detail about the reason for the exception.
15
- */
16
- public JSONException (String message ) {
17
- super (message );
18
- }
19
-
20
- public JSONException (Throwable cause ) {
21
- super (cause .getMessage ());
22
- this .cause = cause ;
23
- }
24
-
25
- public Throwable getCause () {
26
- return this .cause ;
27
- }
28
- }
1
+ package org .json ;
2
+
3
+ /**
4
+ * The JSONException is thrown by the JSON.org classes when things are amiss.
5
+ *
6
+ * @author JSON.org
7
+ * @version 2013-02-10
8
+ */
9
+ public class JSONException extends RuntimeException {
10
+ private static final long serialVersionUID = 0 ;
11
+ private Throwable cause ;
12
+
13
+ /**
14
+ * Constructs a JSONException with an explanatory message.
15
+ *
16
+ * @param message
17
+ * Detail about the reason for the exception.
18
+ */
19
+ public JSONException (String message ) {
20
+ super (message );
21
+ }
22
+
23
+ /**
24
+ * Constructs a new JSONException with the specified cause.
25
+ */
26
+ public JSONException (Throwable cause ) {
27
+ super (cause .getMessage ());
28
+ this .cause = cause ;
29
+ }
30
+
31
+ /**
32
+ * Returns the cause of this throwable or null if the cause is nonexistent or unknown.
33
+ * @returns the cause of this throwable or null if the cause is nonexistent or unknown.
34
+ */
35
+ public Throwable getCause () {
36
+ return this .cause ;
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments