September 2019
Intermediate to advanced
816 pages
18h 47m
English
User problem: Compute the total of an order. If something goes wrong, then throw an IllegalStateException.
The following screenshots exemplify how exceptions are propagated in an asynchronous pipeline; the code in rectangles is not executed when an exception occurs at the point:

The following screenshot shows the exceptions in thenApply() and thenAccept():

So, in supplyAsync(), if an exception occurs, then none of the following callbacks will be called. Moreover, the future will ...