javax.servlet
Class ServletException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.servlet.ServletException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnavailableException

public class ServletException
extends java.lang.Exception

This exception is thrown by a servlet when a servlet related problem occurs.

Since:
Servlet API 1.0
Version:
Servlet API 2.0
See Also:
Serialized Form

Constructor Summary
ServletException()
          Creates a new ServletException.
ServletException(java.lang.String message)
          Creates a new ServletException with a message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletException

public ServletException()
Creates a new ServletException.
Since:
Servlet API 2.0

ServletException

public ServletException(java.lang.String message)
Creates a new ServletException with a message.
Parameters:
message - why this exception occured
Since:
Servlet API 1.0