Interface ExceptionHandler<T extends Throwable,R>
- Type Parameters:
T- The throwableR- The result type
- All Known Implementing Classes:
BufferLengthExceededHandler,ContentLengthExceededHandler,ConversionErrorHandler,DuplicateRouteHandler,ErrorExceptionHandler,ErrorResponseProcessorExceptionHandler,HttpStatusHandler,JacksonExceptionHandler,JsonExceptionHandler,NotAllowedExceptionHandler,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
-