Clover icon

Coverage Report

  1. Project Clover database Fri Dec 6 2024 13:47:14 GMT
  2. Package org.json

File JSONException.java

 

Coverage histogram

../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

0
3
3
1
49
17
3
1
1
3
1

Classes

Class Line # Actions
JSONException 9 3 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

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  0 toggle public JSONException(final String message)
21    {
22  0 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  0 toggle public JSONException(final String message, final Throwable cause)
34    {
35  0 super(message, cause);
36    }
37   
38    /**
39    * Constructs a new JSONException with the specified cause.
40    *
41    * @param cause
42    * The cause.
43    */
 
44  0 toggle public JSONException(final Throwable cause)
45    {
46  0 super(cause.getMessage(), cause);
47    }
48   
49    }