vertx / io.vertx.ext.web.api.contract / DesignDrivenRouterFactory / enableValidationFailureHandler

enableValidationFailureHandler

abstract fun enableValidationFailureHandler(enable: Boolean): DesignDrivenRouterFactory<Any>

Enable or disable validation failure handler. If you enable it, during router creation it will be mounted a built-in (or custom with function DesignDrivenRouterFactory#setValidationFailureHandler(Handler)) ValidationException handler as a failure handler. If failure is different from ValidationException, it will be called the next failure handler.

Parameters

enable -

Return