I use the java Future class to complete the task, but the isDone method returns true if the task is completed. Termination may be due to normal termination, exception or cancellation - in all these cases, this method will return true.
is there any way to find out if this ended because an exception or because it ended successfully?
source
share