Name

UnavailableException

Synopsis

This exception is thrown by a servlet or a filter to indicate it’s currently unavailable. The isPermanent() method indicates whether the resource is permanently unavailable or just temporarily unavailable. If the problem is temporary, use the getUnavailableSeconds() method to obtain the expected duration in seconds.

                  
public class UnavailableException extends ServletException {
// Public Constructors
   public UnavailableException( String msg);                     // 2.2
   public UnavailableException( Servlet servlet, String msg);    // #
   public UnavailableException( String msg, int seconds);        // 2.2
   public UnavailableException(int seconds, Servlet servlet,     // #
        String msg);  
// Public Instance Methods
   public int getUnavailableSeconds();  
   public boolean isPermanent();  
// Deprecated Public Methods
   public Servlet getServlet();                                  // #
}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.