Package kos.api
Interface ExceptionHandler
-
- All Known Implementing Classes:
PredicateExceptionHandler,ValidationExceptionHandler
public interface ExceptionHandlerVersatile exception handler abstraction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Responsehandle(io.vertx.core.http.HttpServerRequest request, Throwable cause)Handles exceptions by returning aResponseobject that will be send as http response to the client.
-
-
-
Method Detail
-
handle
Response handle(io.vertx.core.http.HttpServerRequest request, Throwable cause)
Handles exceptions by returning aResponseobject that will be send as http response to the client.- Parameters:
request- current request contextcause- error cause- Returns:
- object that will be send as http response to the client
-
-