- All Known Implementing Classes:
DefaultErrorPageManager
public interface ErrorPageManager
The ErrorPageManager API.
- Author:
- Manfred Riem ([email protected])
-
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 throwable, HttpServletResponse response) Returns the error page.
-
Method Details
-
addErrorPage
Add an error page.- Parameters:
statusCode
- the status code.page
- the page.
-
addErrorPage
Add an error page.- Parameters:
throwableClassName
- the throwable class name.page
- the page.
-
getErrorPage
Returns the error page.- Parameters:
throwable
- the throwable.response
- the HTTP servlet response.- Returns:
- the error page
-