Implementations of this interface may also choose to suppress error page handler, and handle error page generation
internally by returning true
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true true if the error was handled by this methodThe exchange exchange, ServletRequest The request request, ServletResponse The response response, Throwable The exception throwable)Handles an exception. |
| handleThrowable | back to summary |
|---|---|
| public boolean handleThrowable(final HttpServerExchange exchange, ServletRequest request, ServletResponse response, Throwable throwable) Handles an exception. If this method returns true then the request/response cycle is considered to be finished, and no further action will take place, if this returns false then standard error page redirect will take place. The default implementation of this simply logs the exception and returns false, allowing error page and async context error handling to proceed as normal.
| |