title: CompletableFuture immediate failure
body: <p>I'd like to create a <a href="https://docs.oracle.com/javase/10/docs/api/java/util/concurrent/CompletableFuture.html" rel="noreferrer"><code>CompletableFuture</code></a> that has already completed exceptionally.</p>
  
  <p>Scala provides what I'm looking for via a factory method:</p>
  
  <pre><code>Future.failed(new RuntimeException("No Future!"))
  </code></pre>
  
  <p>Is there something similar in Java 10 or later?</p>