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
The ServletException API.
- Author:
- Manfred Riem ([email protected])
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ServletException()
Constructor.ServletException(java.lang.String message)
Constructor.ServletException(java.lang.String message, java.lang.Throwable rootCause)
Constructor.ServletException(java.lang.Throwable rootCause)
Constructor. -
Method Summary
Modifier and Type Method Description java.lang.Throwable
getRootCause()
Get the root cause.
-
Constructor Details
-
ServletException
public ServletException()Constructor. -
ServletException
public ServletException(java.lang.String message)Constructor.- Parameters:
message
- the message.
-
ServletException
public ServletException(java.lang.String message, java.lang.Throwable rootCause)Constructor.- Parameters:
message
- the message.rootCause
- the root cause.
-
ServletException
public ServletException(java.lang.Throwable rootCause)Constructor.- Parameters:
rootCause
- the root cause.
-
-
Method Details
-
getRootCause
public java.lang.Throwable getRootCause()Get the root cause.- Returns:
- the root cause.
-