Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » json » [javadoc | source]

    1   package org.apache.tomcat.util.json;
    2   
    3   /**
    4    * The JSONException is thrown by the JSON.org classes then things are amiss.
    5    * @author JSON.org
    6    * @version 2008-09-18
    7    */
    8   public class JSONException extends Exception {
    9       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   }

Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » json » [javadoc | source]