Interface ExceptionHandler<T extends Throwable,R>
- Type Parameters:
T
- The throwableR
- The result type
- All Known Implementing Classes:
ContentLengthExceededHandler
,ConversionErrorHandler
,DuplicateRouteHandler
,HttpStatusHandler
,JacksonExceptionHandler
,JsonExceptionHandler
,UnsatisfiedArgumentHandler
,UnsatisfiedRouteHandler
,URISyntaxHandler
public interface ExceptionHandler<T extends Throwable,R>
A generic hook for handling exceptions that occurs during the execution of an HTTP request.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(HttpRequest request, T exception) Handles an exception and returns the result.
-
Method Details
-
handle
Handles an exception and returns the result.- Parameters:
request
- The requestexception
- The exception type- Returns:
- The result
-