From e239e1967ac8230cd23ea7906c6d6b90f489d601 Mon Sep 17 00:00:00 2001 From: "John J. Aylward" Date: Mon, 12 Oct 2015 14:52:17 -0400 Subject: [PATCH] Allows a custom message to be passed with a cause. --- JSONException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/JSONException.java b/JSONException.java index 41e85ae..086bac8 100755 --- a/JSONException.java +++ b/JSONException.java @@ -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. *