All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Serve.servlet.UnavailableException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----Acme.Serve.servlet.ServletException
                           |
                           +----Acme.Serve.servlet.UnavailableException

public class UnavailableException
extends ServletException
An exception for Servlets.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o UnavailableException(int, Servlet, String)
Constructs an UnavailableException with the specified detail message, indicating that the servlet is temporarily unavailable and giving an estimate of how long it will be unavailable.
 o UnavailableException(Servlet, String)
Constructs an UnavailableException with the specified detail message, indicating the servlet is permanently unavailable.

Method Index

 o getServlet()
Returns the servlet that is reporting its unavailability.
 o getUnavailableSeconds()
Returns the amount of time the servlet expects to be temporarily unavailable.
 o isPermanent()
Returns true if the servlet is "permanently" unavailable, indicating that the service administrator must take some corrective action to make the servlet be usable.

Constructors

 o UnavailableException
 public UnavailableException(Servlet servlet,
                             String msg)
Constructs an UnavailableException with the specified detail message, indicating the servlet is permanently unavailable.

 o UnavailableException
 public UnavailableException(int seconds,
                             Servlet servlet,
                             String msg)
Constructs an UnavailableException with the specified detail message, indicating that the servlet is temporarily unavailable and giving an estimate of how long it will be unavailable. In some cases, no estimate can be made; this is indicated by a non-positive time.

Methods

 o isPermanent
 public boolean isPermanent()
Returns true if the servlet is "permanently" unavailable, indicating that the service administrator must take some corrective action to make the servlet be usable.

 o getServlet
 public Servlet getServlet()
Returns the servlet that is reporting its unavailability.

 o getUnavailableSeconds
 public int getUnavailableSeconds()
Returns the amount of time the servlet expects to be temporarily unavailable.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs