Package javax.servlet

Class UnavailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
javax.servlet.UnavailableException
All Implemented Interfaces:
java.io.Serializable

public class UnavailableException
extends ServletException
The UnavailableException API.
Author:
Manfred Riem ([email protected])
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    UnavailableException​(int unavailableSeconds, Servlet servlet, java.lang.String message)
    Deprecated. 
    UnavailableException​(java.lang.String message)
    Constructor.
    UnavailableException​(java.lang.String message, int unavailableSeconds)
    Constructor.
    UnavailableException​(Servlet servlet, java.lang.String message)
    Deprecated. 
  • Method Summary

    Modifier and Type Method Description
    Servlet getServlet()
    Deprecated. 
    int getUnavailableSeconds()
    Get the unavailableSeconds.
    boolean isPermanent()
    Is unavailability permanent.

    Methods inherited from class javax.servlet.ServletException

    getRootCause

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UnavailableException

      public UnavailableException​(java.lang.String message)
      Constructor.
      Parameters:
      message - the message.
    • UnavailableException

      public UnavailableException​(java.lang.String message, int unavailableSeconds)
      Constructor.
      Parameters:
      message - the message.
      unavailableSeconds - the unavailable seconds.
    • UnavailableException

      @Deprecated public UnavailableException​(Servlet servlet, java.lang.String message)
      Deprecated.
      Constructor.
      Parameters:
      servlet - the servlet.
      message - the message.
    • UnavailableException

      @Deprecated public UnavailableException​(int unavailableSeconds, Servlet servlet, java.lang.String message)
      Deprecated.
      Constructor.
      Parameters:
      unavailableSeconds - the unavailable seconds.
      servlet - the servlet.
      message - the message.
  • Method Details

    • getServlet

      @Deprecated public Servlet getServlet()
      Deprecated.
      Get the servlet.
      Returns:
      the servlet
    • getUnavailableSeconds

      public int getUnavailableSeconds()
      Get the unavailableSeconds.
      Returns:
      the unavailable seconds.
    • isPermanent

      public boolean isPermanent()
      Is unavailability permanent.
      Returns:
      true if it is, false otherwise.