Interface ExceptionHandler<T extends Throwable,R>

Type Parameters:
T - The throwable
R - The result type
All Known Implementing Classes:
BufferLengthExceededHandler, 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 Type
    Method
    Description
    handle(HttpRequest request, T exception)
    Handles an exception and returns the result.
  • Method Details

    • handle

      @Executable R handle(HttpRequest request, T exception)
      Handles an exception and returns the result.
      Parameters:
      request - The request
      exception - The exception type
      Returns:
      The result