JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / 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 {
11   /** Serialization ID */
12   private static final long serialVersionUID = 0;
13
14   /**
15    * Constructs a JSONException with an explanatory message.
16    *
17    * @param message
18    *          Detail about the reason for the exception.
19    */
20   public JSONException(final String message)
21   {
22     super(message);
23   }
24
25   /**
26    * Constructs a JSONException with an explanatory message and cause.
27    * 
28    * @param message
29    *          Detail about the reason for the exception.
30    * @param cause
31    *          The cause.
32    */
33   public JSONException(final String message, final Throwable cause)
34   {
35     super(message, cause);
36   }
37
38   /**
39    * Constructs a new JSONException with the specified cause.
40    * 
41    * @param cause
42    *          The cause.
43    */
44   public JSONException(final Throwable cause)
45   {
46     super(cause.getMessage(), cause);
47   }
48
49 }