...
Furthermore, any exception that prevents doSomething()
from obtaining the Future
value can be handled as required.
Exceptions
TPS03-J-EX0: This rule may be violated only when the code for all runnable and callable tasks has been audited to ensure that exceptional conditions are impossible. Nonetheless, it remains good practice to install a task-specific or global exception handler to initiate recovery or log any exceptional conditions.
...