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;
}
Aggregations