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