Interface Rest.ExceptionHandler

Enclosing class:
Rest
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Rest.ExceptionHandler
Represents an exception handler, can be used to uniformly handle exceptions.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Exception exception, Rest.Request request, Rest.Response response)
    Invoked when a registered exception type occurred.
  • Method Details

    • handle

      void handle(Exception exception, Rest.Request request, Rest.Response response)
      Invoked when a registered exception type occurred.
      Parameters:
      exception - The exception thrown.
      request - The request object providing information about the HTTP request
      response - The response object providing functionality for modifying the response