Java Servlet Programming, 2nd Edition > A. Servlet API Quick Reference > ServletException |
SynopsisClass Name: javax.servlet.ServletException Superclass: java.lang.Exception Immediate Subclasses: javax.servlet.UnavailableException Interfaces Implemented: None Availability: Servlet API 1.0 and later DescriptionA generic exception thrown by servlets encountering difficulties. Class Summarypublic class ServletException extends java.lang.Exception { // Constructors public ServletException(); // New in 2.0 public ServletException(String msg); public ServletException(String msg, Throwable rootCause); // New in 2.1 public ServletException(Throwable rootCause); // New in 2.1 public Throwable getRootCause(); // New in 2.1 } Constructorspublic ServletException()public ServletException() public ServletException(String msg) public ServletException(String msg, Throwable rootCause) public ServletException(Throwable rootCause)
Instance MethodsgetRootCause()public Throwable getRootCause()
|