Package kos.core.validation
Class ValidationExceptionHandler
- java.lang.Object
-
- kos.core.validation.ValidationExceptionHandler
-
- All Implemented Interfaces:
ExceptionHandler
public class ValidationExceptionHandler extends Object implements ExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description ValidationExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete 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
public Response handle(io.vertx.core.http.HttpServerRequest 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
-
-