JavaScript is disabled on your browser.
javax.servlet

Class ServletException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    UnavailableException


    public class ServletException
    extends java.lang.Exception
    This exception is thrown by a servlet when a servlet related problem occurs.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors
      Constructor and Description
      ServletException ()
      Creates a new ServletException.
      ServletException (java.lang.String message)
      Creates a new ServletException with a message.
      ServletException (java.lang.String message, java.lang.Throwable cause)
      Creates a new ServletException with a message and what caused the exception.
      ServletException (java.lang.Throwable cause)
      Creates a new ServletException with what caused the exception.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.Throwable getRootCause ()
      Gives the Throwable that caused this exception if known, otherwise null.
      • 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 Detail

      • ServletException

        public ServletException()
        Creates a new ServletException.
        Since:
        2.0
      • ServletException

        public ServletException(java.lang.String message)
        Creates a new ServletException with a message.
        Parameters:
        message - why this exception occured
      • ServletException

        public ServletException(java.lang.String message,
         java.lang.Throwable cause)
        Creates a new ServletException with a message and what caused the exception.
        Parameters:
        message - why this exception occured
        cause - what made this exception occur
        Since:
        2.1
      • ServletException

        public ServletException(java.lang.Throwable cause)
        Creates a new ServletException with what caused the exception.
        Parameters:
        message - why this exception occured
        cause - what made this exception occur
        Since:
        2.1
    • Method Detail

      • getRootCause

        public java.lang.Throwable getRootCause()
        Gives the Throwable that caused this exception if known, otherwise null.
        Returns:
        Throwable that caused this exception
        Since:
        2.1

AltStyle によって変換されたページ (->オリジナル) /