Skip to content

Commit e239e19

Browse files
author
John J. Aylward
committed
Allows a custom message to be passed with a cause.
1 parent 4e77383 commit e239e19

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

JSONException.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @version 2014-05-03
88
*/
99
public class JSONException extends RuntimeException {
10+
/** Serialization ID */
1011
private static final long serialVersionUID = 0;
1112

1213
/**
@@ -19,6 +20,16 @@ public JSONException(final String message) {
1920
super(message);
2021
}
2122

23+
/**
24+
* @param message
25+
* Detail about the reason for the exception.
26+
* @param cause
27+
* The cause.
28+
*/
29+
public JSONException(String message, Throwable cause) {
30+
super(message, cause);
31+
}
32+
2233
/**
2334
* Constructs a new JSONException with the specified cause.
2435
*

0 commit comments

Comments
 (0)