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 by a servlet when a servlet related problem occurs.
- Since:
- Servlet API 1.0
- Version:
- Servlet API 2.1
- See Also:
- Serialized Form
Constructor Summary |
ServletException()
Creates a new ServletException. |
ServletException(java.lang.String message)
Creates a new ServletException with a message. |
ServletException(java.lang.String message,
java.lang.Throwable cause)
Creates a new ServletException with a message
and what caused the exception. |
Method Summary |
java.lang.Throwable |
getRootCause()
Gives the Throwable that caused this exception if known, otherwise null. |
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 |
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
ServletException
public ServletException(java.lang.String message,
java.lang.Throwable cause)
- Creates a new ServletException with a message
and what caused the exception.
- Parameters:
message
- why this exception occuredcause
- what made this exception occur- Since:
- Servlet API 2.1
getRootCause
public java.lang.Throwable getRootCause()
- Gives the Throwable that caused this exception if known, otherwise null.
- Returns:
- Throwable that caused this exception
- Since:
- Servlet API 2.1