Search in sources :

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

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

the class Validator method replyError.

private <T> void replyError(final T proxy, final Method method, final ConstraintViolation<T> item) {
    if (null != item) {
        final WebException error = new _400ValidationException(this.getClass(), proxy.getClass(), method, item.getMessage());
        error.setReadible(item.getMessage());
        throw error;
    }
}
Also used : WebException(io.vertx.up.exception.WebException) io.vertx.up.exception._400ValidationException(io.vertx.up.exception._400ValidationException)

Aggregations

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