javax.servlet
Class ServletException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.servlet.ServletException
Direct Known Subclasses:
UnavailableException

public class ServletException
extends java.lang.Exception

This exception is thrown to indicate a servlet problem.

See Also:
Serialized Form

Constructor Summary
ServletException()
          Constructs a new ServletException.
ServletException(java.lang.String message)
          Constructs a new ServletException with the specified message.
ServletException(java.lang.String message, java.lang.Throwable rootCause)
          Constructs a new ServletException with the specified message and root cause.
ServletException(java.lang.Throwable rootCause)
          Constructs a new ServletException with the specified message and root cause.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the root cause of this exception.
 
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()
Constructs a new ServletException.

ServletException

public ServletException(java.lang.String message)
Constructs a new ServletException with the specified message.
Parameters:
message - Message of exception

ServletException

public ServletException(java.lang.String message,
                        java.lang.Throwable rootCause)
Constructs a new ServletException with the specified message and root cause.
Parameters:
message - Message of exception
rootCause - Exception that caused this exception to be raised

ServletException

public ServletException(java.lang.Throwable rootCause)
Constructs a new ServletException with the specified message and root cause.
Parameters:
rootCause - Exception that caused this exception to be raised
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the root cause of this exception.
Returns:
Throwable