code: public static <T> ThriftListenableFuture<T> failedListenableFuture(Exception e) {
          final ThriftListenableFuture<T> future = new ThriftListenableFuture<>();
          future.onError(e);
          return future;
      }
docs: Returns a new {@link ThriftListenableFuture} instance that has an exception set immediately.