CompletableFuture.completeExceptionally

If not already completed, causes invocations of {@link #get()} and related methods to throw the given exception.

@param ex the exception @return {@code true} if this invocation caused this CompletableFuture to transition to a completed state, else {@code false}

class CompletableFuture(T)
override
bool
completeExceptionally
(
Throwable ex
)

Meta