01: package org.jboss.portal.widget.netvibes.json;
02:
03: /**
04: * The JSONException is thrown by the JSON.org classes then things are amiss.
05: * @author JSON.org
06: * @version 2
07: */
08: public class JSONException extends Exception {
09: private Throwable cause;
10:
11: /**
12: * Constructs a JSONException with an explanatory message.
13: * @param message Detail about the reason for the exception.
14: */
15: public JSONException(String message) {
16: super (message);
17: }
18:
19: public JSONException(Throwable t) {
20: super (t.getMessage());
21: this .cause = t;
22: }
23:
24: public Throwable getCause() {
25: return this.cause;
26: }
27: }
|