From 8a74e1544bc42c036460ca2002edd7941b1756f0 Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Tue, 29 Oct 2019 20:58:02 +0100 Subject: [PATCH] Catch throwable instead of exception in Future#future(Handler) factory method --- src/main/java/io/vertx/core/Future.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/vertx/core/Future.java b/src/main/java/io/vertx/core/Future.java index 47af2b30c..fecb8edfc 100644 --- a/src/main/java/io/vertx/core/Future.java +++ b/src/main/java/io/vertx/core/Future.java @@ -39,7 +39,7 @@ public interface Future extends AsyncResult { Promise promise = Promise.promise(); try { handler.handle(promise); - } catch (Exception e){ + } catch (Throwable e){ promise.tryFail(e); } return promise.future();