Currently when a CompletionStage fails with a RuntimeException this is wrapped in a CompletionException.
When converting CompletionStage to a Scala Future this is not unwrapped thus making it cumbersome recover from it (with an extra recover step that throws the original wrapped exception for example).
Currently when a
CompletionStagefails with aRuntimeExceptionthis is wrapped in aCompletionException.When converting
CompletionStageto a ScalaFuturethis is not unwrapped thus making it cumbersome recover from it (with an extra recover step that throws the original wrapped exception for example).