Name

ServletException

Synopsis

A generic Exception class used for basic servlet errors. In version 2.1, a servlet can specify a Throwable root cause for this exception (using the constructors that accept Throwable parameters). The root cause can be retrieved with the getRootCause() method.

                  
public class ServletException extends Exception {
// Public Constructors
   public ServletException();  
   public ServletException( Throwable rootCause);                // 2.1
   public ServletException( String message);  
   public ServletException(String message,                       // 2.1
        Throwable rootCause);  
// Public Instance Methods
   public Throwable getRootCause();                              // default:null, 2.1
}

Subclasses

UnavailableException

Thrown By

Too many methods to list.

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.