Class DefaultErrorPageManager

java.lang.Object
cloud.piranha.webapp.impl.DefaultErrorPageManager

public class DefaultErrorPageManager
extends java.lang.Object
Author:
Arjan Tijms
  • Constructor Summary

    Constructors
    Constructor Description
    DefaultErrorPageManager()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getErrorPage​(java.lang.Throwable exception, HttpServletResponse httpResponse)
    Get the error page.
    java.util.Map<java.lang.Integer,​java.lang.String> getErrorPagesByCode()
    Get the error pages by code.
    java.util.Map<java.lang.String,​java.lang.String> getErrorPagesByException()
    Get the error pages by exception.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultErrorPageManager

      public DefaultErrorPageManager()
  • Method Details

    • getErrorPagesByCode

      public java.util.Map<java.lang.Integer,​java.lang.String> getErrorPagesByCode()
      Get the error pages by code.
      Returns:
      the error pages by code map.
    • getErrorPagesByException

      public java.util.Map<java.lang.String,​java.lang.String> getErrorPagesByException()
      Get the error pages by exception.
      Returns:
      the error pages by exception map.
    • getErrorPage

      public java.lang.String getErrorPage​(java.lang.Throwable exception, HttpServletResponse httpResponse)
      Get the error page.
      Parameters:
      exception - the exception.
      httpResponse - the HTTP servlet response.
      Returns:
      the error page.