title: Exception during Callable execution
body: <p>I have the following Callable:</p>
  
  <pre><code>public class Worker implements Callable&lt;Boolean&gt;{
  
     @Override
     public Boolean call(){
        boolean success=true;
  
        //do Something
       return success;
     }
  
  }
  </code></pre>
  
  <p>Now I'm executing it:</p>
  
  <pre><code>Worker worker - new Worker();
  Future&lt;Boolean&gt; submit = executor.submit(worker);
  </code></pre>
  
  <p>I'm storing the submit in kind of hashMap for some operation to be performed somewhere in code.</p>
  
  <p>How can I know if any exception has occured in <code>worker.call()</code> function? </p>
  
  <p>Will <code>submit.isCancelled()</code> return true if some sort of Exception occurred and false if everything works ok? </p>