Class DefaultErrorPageManager

java.lang.Object
cloud.piranha.core.impl.DefaultErrorPageManager
All Implemented Interfaces:
ErrorPageManager

public class DefaultErrorPageManager extends Object implements ErrorPageManager
The default ErrorPageManager.
Author:
Arjan Tijms, Manfred Riem ([email protected])
  • Constructor Details

    • DefaultErrorPageManager

      public DefaultErrorPageManager()
  • Method Details

    • addErrorPage

      public void addErrorPage(int statusCode, String page)
      Description copied from interface: ErrorPageManager
      Add an error page.
      Specified by:
      addErrorPage in interface ErrorPageManager
      Parameters:
      statusCode - the status code.
      page - the page.
    • addErrorPage

      public void addErrorPage(String throwableClassName, String page)
      Description copied from interface: ErrorPageManager
      Add an error page.
      Specified by:
      addErrorPage in interface ErrorPageManager
      Parameters:
      throwableClassName - the throwable class name.
      page - the page.
    • getErrorPage

      public String getErrorPage(Throwable exception, jakarta.servlet.http.HttpServletResponse httpResponse)
      Description copied from interface: ErrorPageManager
      Returns the error page.
      Specified by:
      getErrorPage in interface ErrorPageManager
      Parameters:
      exception - the throwable.
      httpResponse - the HTTP servlet response.
      Returns:
      the error page