Search in sources :

Example 1 with io.vertx.up.exception._400ValidationRuleException

use of io.vertx.up.exception._400ValidationRuleException in project vertx-zero by silentbalanceyh.

the class BaseRuler method failure.

protected WebException failure(final String field, final Object value, final Rule rule) {
    final String message = rule.getMessage();
    final WebException error = new _400ValidationRuleException(getClass(), field, value, message);
    error.setReadible(message);
    getLogger().info(Info.MSG_FAILURE, error.toJson());
    return error;
}
Also used : WebException(io.vertx.up.exception.WebException) io.vertx.up.exception._400ValidationRuleException(io.vertx.up.exception._400ValidationRuleException)

Aggregations

WebException (io.vertx.up.exception.WebException)1 io.vertx.up.exception._400ValidationRuleException (io.vertx.up.exception._400ValidationRuleException)1