vertx / io.vertx.ext.web.api.contract / RouterFactoryOptions / setMountValidationFailureHandler

# setMountValidationFailureHandler

`open fun setMountValidationFailureHandler(mountGlobalValidationFailureHandler: Boolean): RouterFactoryOptions`

Enable or disable validation failure handler. If you enable it during router creation a failure handler that manages ValidationException will be mounted. You can change the validation failure handler with with function `RouterFactoryOptions#setValidationFailureHandler(Handler)`. If failure is different from ValidationException, next failure handler will be called.

### Parameters

`mountGlobalValidationFailureHandler` -

Return
this object