Class ServletException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnavailableException

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

    • ServletException

      public ServletException()
      Constructor.
    • ServletException

      public ServletException(String message)
      Constructor.
      Parameters:
      message - the message.
    • ServletException

      public ServletException(String message, Throwable rootCause)
      Constructor.
      Parameters:
      message - the message.
      rootCause - the root cause.
    • ServletException

      public ServletException(Throwable rootCause)
      Constructor.
      Parameters:
      rootCause - the root cause.
  • Method Details

    • getRootCause

      public Throwable getRootCause()
      Returns the root cause.
      Returns:
      the root cause