use of io.vertx.up.exception._500EntityCastException in project vertx-zero by silentbalanceyh.
the class BaseAim method success.
protected Envelop success(final String address, final AsyncResult<Message<Envelop>> handler) {
Envelop envelop;
try {
final Message<Envelop> message = handler.result();
envelop = message.body();
} catch (final Throwable ex) {
final WebException error = new _500EntityCastException(this.getClass(), address, ex.getMessage());
envelop = Envelop.failure(error);
}
return envelop;
}
Aggregations