Package kos.api

Interface ExceptionHandler

All Known Implementing Classes:
PredicateExceptionHandler, ValidationExceptionHandler

public interface ExceptionHandler
Versatile exception handler abstraction.
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.vertx.core.http.HttpServerRequest request, Throwable cause)
    Handles exceptions by returning a Response object that will be send as http response to the client.
  • Method Details

    • handle

      Response handle(io.vertx.core.http.HttpServerRequest request, Throwable cause)
      Handles exceptions by returning a Response object that will be send as http response to the client.
      Parameters:
      request - current request context
      cause - error cause
      Returns:
      object that will be send as http response to the client