Package kos.core
Class ExceptionHandler.DefaultExceptionHandler
- java.lang.Object
-
- kos.core.ExceptionHandler.DefaultExceptionHandler
-
- All Implemented Interfaces:
ExceptionHandler
- Enclosing interface:
- ExceptionHandler
public static class ExceptionHandler.DefaultExceptionHandler extends Object implements ExceptionHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface kos.core.ExceptionHandler
ExceptionHandler.DefaultExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private io.vertx.core.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete 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
public Response handle(io.vertx.ext.web.RoutingContext request, Throwable cause)
Description copied from interface:ExceptionHandlerHandles exceptions by returning aResponseobject that will be send as http response to the client.- Specified by:
handlein interfaceExceptionHandler- Parameters:
request- current request contextcause- error cause- Returns:
- object that will be send as http response to the client
-
-