public static Throwable getException()

in src/main/java/com/spotify/futures/FuturesExtra.java [1060:1068]


  public static <T> Throwable getException(ListenableFuture<T> future) {
    checkCompleted(future);
    try {
      Uninterruptibles.getUninterruptibly(future);
      return null;
    } catch (ExecutionException e) {
      return e.getCause();
    }
  }