@Override
    public boolean isCompletedExceptionally() {
        return completableFuture.isCompletedExceptionally();
    }
Returns true if this CompletableFuture completed exceptionally, in any way.
clients/src/main/java/org/apache/kafka/common/internals/KafkaFutureImpl.java