]> WPIA git - gigi.git/blob - lib/json/org/json/JSONException.java
add: import org.json
[gigi.git] / lib / json / org / json / JSONException.java
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 2015-12-09
8  */
9 public class JSONException extends RuntimeException {
10     /** Serialization ID */
11     private static final long serialVersionUID = 0;
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(final String message) {
20         super(message);
21     }
22
23     /**
24      * Constructs a JSONException with an explanatory message and cause.
25      * 
26      * @param message
27      *            Detail about the reason for the exception.
28      * @param cause
29      *            The cause.
30      */
31     public JSONException(final String message, final Throwable cause) {
32         super(message, cause);
33     }
34
35     /**
36      * Constructs a new JSONException with the specified cause.
37      * 
38      * @param cause
39      *            The cause.
40      */
41     public JSONException(final Throwable cause) {
42         super(cause.getMessage(), cause);
43     }
44
45 }