ErrorPageSupport (Apache Tomcat 8.5.53 API Documentation)

org.apache.catalina.util

## Class ErrorPageSupport

- java.lang.Object
- - org.apache.catalina.util.ErrorPageSupport

-     public class ErrorPageSupport
      extends Object

  Provides support for tracking per exception type and per HTTP status code error pages.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ErrorPageSupport()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(ErrorPage errorPage)`
    `ErrorPage` | `find(int statusCode)`
    `ErrorPage` | `find(String exceptionType)` Deprecated. Unused. Will be removed in Tomcat 10. Use `find(Throwable)` instead.
    `ErrorPage` | `find(Throwable exceptionType)`
    `ErrorPage[]` | `findAll()`
    `void` | `remove(ErrorPage errorPage)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ErrorPageSupport

          public ErrorPageSupport()

  - ### Method Detail

    - #### add

          public void add(ErrorPage errorPage)

    - #### remove

          public void remove(ErrorPage errorPage)

    - #### find

          public ErrorPage find(int statusCode)

    - #### find

          @Deprecated
          public ErrorPage find(String exceptionType)

      Deprecated. Unused. Will be removed in Tomcat 10. Use `find(Throwable)` instead.
      Find the ErrorPage, if any, for the named exception type.
      Parameters:
        `exceptionType` - The fully qualified class name of the exception type
      Returns:
        The ErrorPage for the named exception type, or `null` if none is configured

    - #### find

          public ErrorPage find(Throwable exceptionType)

    - #### findAll

          public ErrorPage[] findAll()

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.