Package kos.api

Interface ExceptionHandler

  • All Known Implementing Classes:
    DefaultExceptionHandler

    public interface ExceptionHandler
    Versatile exception handler abstraction.
    • Method Summary

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

      • handle

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