Clover icon

Coverage Report

  1. Project Clover database Thu Aug 13 2020 12:04:21 BST
  2. Package org.json

File JSONException.java

 

Coverage histogram

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

Code metrics

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