November 1998
Intermediate to advanced
526 pages
14h 38m
English
ServletException
Class Name: javax.servlet.ServletException
Superclass: java.lang.Exception
Immediate Subclasses:
javax.servlet.UnavailableException
Interfaces Implemented: None
Availability: Servlet API 1.0 and later
A generic exception thrown by servlets encountering difficulties.
public class ServletException extends java.lang.Exception {
// Constructors
public ServletException(); // New in 2.0
public ServletException(String msg);
}public ServletException() public ServletException(String msg)
Constructs a new ServletException , with an
optional descriptive message. If a message is specified, it can be
retrieved by calling getMessage() and is usually
included in server logs and user error messages.