Java Reference
In-Depth Information
The
ServletException()
Method
public ServletException()
B
The
ServletException()
method is the empty constructor. It has no parameters, returns no
value, and throws no exceptions.
The
ServletException(java.lang.String message)
Method
public ServletException(java.lang.String message)
This method creates a new
ServletException
object with the passed in string as the message.
It has one parameter:
•
java.lang.String
N
OTE
The
ServletException()
method always returns no value and throws no exceptions.
The
ServletException(java.lang.String message,
java.lang.Throwable rootCause)
Method
public ServletException(java.lang.String message,
java.lang.Throwable rootCause)
This method creates a
ServletException
object with a message and a
Throwable
object repre-
senting the cause of the exception.
It has two parameters:
•
java.lang.String
•
java.lang.Throwable
The
ServletException()
Method
public ServletException(java.lang.Throwable rootCause)
This method creates a new
ServletException
object with a
Throwable
object representing the
cause of the exception.
It has one parameter:
•
java.lang.Throwable
The
getRootCause()
Method
public java.lang.Throwable getRootCause()