Java Reference
In-Depth Information
The getRootCause() method returns a Throwable object representing the cause of the excep-
tion. getRootCause() has no parameters and throws no exceptions.
It returns this value:
java.lang.Throwable
The UnavailableException
An UnavailableException is thrown when a servlet is not available to service a request. The
two types of UnavailableException s are permanent and temporary.
When a servlet is permanently unavailable, the servlet will not be able to service requests until
some administrative task is completed.
When a servlet is temporarily unavailable, the servlet is expected to be able to service requests
within a given period of time.
The UnavailableException(java.lang.String msg, int seconds)
Constructor
public UnavailableException(java.lang.String msg, int seconds)
This constructor creates an UnavailableException() with an int value, representing a esti-
mated time of unavailability. It also receives a reference to a String representing the error
message.
It has two parameters:
java.lang.String
int
The UnavailableException(java.lang.String msg) Method
public UnavailableException(java.lang.String msg)
This constructor creates an UnavailableException() with a String representing the error
message. This constructor create an UnavailableException() , denoting permanent unavail-
ability
It has one parameter:
java.lang.String
The isPermanent() Method
public boolean isPermanent()
Search WWH ::




Custom Search