public static <T> ThriftListenableFuture<T> exceptionallyCompletedFuture(Throwable cause) {
        requireNonNull(cause, "cause");
        final ThriftListenableFuture<T> future = new ThriftListenableFuture<>();
        future.onError(cause instanceof Exception ? (Exception) cause : new CompletionException(cause));
        return future;
    }
Returns a new {@link ThriftListenableFuture} instance that has an exception set immediately.
thrift/thrift0.13/src/main/java/com/linecorp/armeria/common/thrift/ThriftListenableFuture.java