| Access | Constructor and Description |
|---|---|
| public | |
| public | ServletException(String
a message)String specifying the text of
the exception messageConstructs a new servlet exception with the specified message. |
| public | ServletException(String
a message, Throwable String containing
the text of the exception messagethe rootCause)Throwable exception
that interfered with the servlet's normal operation, making this servlet
exception necessaryConstructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message. |
| public | ServletException(Throwable
the rootCause)Throwable exception
that interfered with the servlet's normal operation, making the
servlet exception necessaryConstructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation. |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | Returns: theThrowable that caused this servlet exceptionReturns the exception that caused this servlet exception. |
| rootCause | back to summary |
|---|---|
| private Throwable rootCause | |
| ServletException | back to summary |
|---|---|
| public ServletException() Constructs a new servlet exception. | |
| ServletException | back to summary |
|---|---|
| public ServletException(String message) Constructs a new servlet exception with the specified message. The message can be written to the server log and/or displayed for the user.
| |
| ServletException | back to summary |
|---|---|
| public ServletException(String message, Throwable rootCause) Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message. | |
| ServletException | back to summary |
|---|---|
| public ServletException(Throwable rootCause) Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation. The exception's message is based on the localized message of the underlying exception. This method calls the
| |
| getRootCause | back to summary |
|---|---|
| public Throwable getRootCause() Returns the exception that caused this servlet exception.
| |