home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / servlet-api.jar / javax / servlet / ServletException.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-08-28  |  940 b   |  27 lines

  1. package javax.servlet;
  2.  
  3. public class ServletException extends Exception {
  4.    private Throwable rootCause;
  5.  
  6.    public ServletException() {
  7.    }
  8.  
  9.    public ServletException(String message) {
  10.       super(message);
  11.    }
  12.  
  13.    public ServletException(String message, Throwable rootCause) {
  14.       super(message);
  15.       this.rootCause = rootCause;
  16.    }
  17.  
  18.    public ServletException(Throwable rootCause) {
  19.       super(rootCause.getLocalizedMessage());
  20.       this.rootCause = rootCause;
  21.    }
  22.  
  23.    public Throwable getRootCause() {
  24.       return this.rootCause;
  25.    }
  26. }
  27.