diff --git a/src/org/redkale/service/RetResult.java b/src/org/redkale/service/RetResult.java index c7aede192..327589605 100644 --- a/src/org/redkale/service/RetResult.java +++ b/src/org/redkale/service/RetResult.java @@ -27,7 +27,7 @@ import org.redkale.util.*; * @author zhangjx * @param 结果对象的泛型 */ -public class RetResult implements Serializable{ +public class RetResult implements Serializable { public static final Type TYPE_RET_INTEGER = new TypeToken>() { }.getType(); @@ -121,6 +121,8 @@ public class RetResult implements Serializable{ public static RetResult get(CompletableFuture> future, long timeout, TimeUnit unit) { try { return future.get(timeout, unit); + } catch (ExecutionException ex) { + throw new RuntimeException(ex.getCause()); } catch (Exception ex) { throw new RuntimeException(ex); }