Class ServletException

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

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

    Constructors
    Constructor Description
    ServletException()
    Constructor.
    ServletException​(java.lang.String message)
    Constructor.
    ServletException​(java.lang.String message, java.lang.Throwable rootCause)
    Constructor.
    ServletException​(java.lang.Throwable rootCause)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.Throwable getRootCause()
    Get the root cause.

    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

    • ServletException

      public ServletException()
      Constructor.
    • ServletException

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

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

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

    • getRootCause

      public java.lang.Throwable getRootCause()
      Get the root cause.
      Returns:
      the root cause.