Class ValidationExceptionHandler

java.lang.Object
kos.core.validation.ValidationExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class ValidationExceptionHandler extends Object implements ExceptionHandler
  • Constructor Details

    • ValidationExceptionHandler

      public ValidationExceptionHandler()
  • Method Details

    • handle

      public Response handle(io.vertx.core.http.HttpServerRequest request, Throwable cause)
      Description copied from interface: ExceptionHandler
      Handles exceptions by returning a Response object that will be send as http response to the client.
      Specified by:
      handle in interface ExceptionHandler
      Parameters:
      request - current request context
      cause - error cause
      Returns:
      object that will be send as http response to the client