增加 welcome-file 以支持 Tomcat 7 下根路径可以被 map 到 LoginServlet。
[jibu.git] / plugins / jibu-json / src / main / java / org / gaixie / jibu / json / JSONException.java
blobc72e9b59bdbb821f5ce0abdffc8aab9ba9eb00ab
1 package org.gaixie.jibu.json;
3 /**
4 * The JSONException is thrown by the JSON.org classes when things are amiss.
5 * @author JSON.org
6 * @version 2008-09-18
7 */
8 public class JSONException extends Exception {
9 private Throwable cause;
11 /**
12 * Constructs a JSONException with an explanatory message.
13 * @param message Detail about the reason for the exception.
15 public JSONException(String message) {
16 super(message);
19 public JSONException(Throwable t) {
20 super(t.getMessage());
21 this.cause = t;
24 public Throwable getCause() {
25 return this.cause;