@FunctionalInterface public interface ExceptionHandler<T extends Exception>
| Modifier and Type | Method and Description |
|---|---|
void |
handle(T exception,
Request request,
Response response)
Invoked when an exception that is mapped to this handler occurs during routing
|
void handle(T exception, Request request, Response response)
exception - The exception that was thrown during routingrequest - The request object providing information about the HTTP requestresponse - The response object providing functionality for modifying the responseCopyright © 2018. All rights reserved.