1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Allows a custom message to be passed with a cause.

This commit is contained in:
John J. Aylward 2015-10-12 14:52:17 -04:00
parent 4e77383472
commit e239e1967a

View file

@ -7,6 +7,7 @@ package org.json;
* @version 2014-05-03
*/
public class JSONException extends RuntimeException {
/** Serialization ID */
private static final long serialVersionUID = 0;
/**
@ -19,6 +20,16 @@ public class JSONException extends RuntimeException {
super(message);
}
/**
* @param message
* Detail about the reason for the exception.
* @param cause
* The cause.
*/
public JSONException(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructs a new JSONException with the specified cause.
*