4 * The JSONException is thrown by the JSON.org classes when things are amiss.
9 public class JSONException extends RuntimeException {
10 /** Serialization ID */
11 private static final long serialVersionUID = 0;
14 * Constructs a JSONException with an explanatory message.
17 * Detail about the reason for the exception.
19 public JSONException(final String message) {
24 * Constructs a JSONException with an explanatory message and cause.
27 * Detail about the reason for the exception.
31 public JSONException(final String message, final Throwable cause) {
32 super(message, cause);
36 * Constructs a new JSONException with the specified cause.
41 public JSONException(final Throwable cause) {
42 super(cause.getMessage(), cause);