title: Java FutureTask completion check
body: <p>I have checked Oracle Java API, which gives some info that <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/FutureTask.html#isDone%28%29" rel="noreferrer">FutureTask.isDone()</a></p>
  
  <p>but I need to check whether the task has completed or terminated with any error.
  isDone() method will return even if it completes/terminates. But I need to know whether it's completed or terminated due to some problem.</p>