Package kos.core
Interface ExceptionHandler
-
- All Known Implementing Classes:
ExceptionHandler.DefaultExceptionHandler
public interface ExceptionHandlerVersatile exception handler abstraction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExceptionHandler.DefaultExceptionHandler
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Responsehandle(io.vertx.ext.web.RoutingContext 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.ext.web.RoutingContext 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
-
-