java.lang.Object
cloud.piranha.core.impl.DefaultErrorPageManager
- All Implemented Interfaces:
ErrorPageManager
The default ErrorPageManager.
- Author:
- Arjan Tijms, Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorPage
(int statusCode, String page) Add an error page.void
addErrorPage
(String throwableClassName, String page) Add an error page.getErrorPage
(Throwable exception, jakarta.servlet.http.HttpServletResponse httpResponse) Returns the error page.
-
Constructor Details
-
DefaultErrorPageManager
public DefaultErrorPageManager()
-
-
Method Details
-
addErrorPage
Description copied from interface:ErrorPageManager
Add an error page.- Specified by:
addErrorPage
in interfaceErrorPageManager
- Parameters:
statusCode
- the status code.page
- the page.
-
addErrorPage
Description copied from interface:ErrorPageManager
Add an error page.- Specified by:
addErrorPage
in interfaceErrorPageManager
- 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 interfaceErrorPageManager
- Parameters:
exception
- the throwable.httpResponse
- the HTTP servlet response.- Returns:
- the error page
-