title: How to handle exception from Callable<Void>
body: <p>I would like to know how to handle exceptions from my Callable when I use Void as a return type.</p>
  
  <p>Something like this:</p>
  
  <pre><code>ExecutorService executor = Executors.newSingleThreadExecutor();
  executor.submit(new Callable&lt;Void&gt;() {
  
          @Override
          public Void call() throws Exception {
              call a third party code where an exception is thrown...
              return null;
          }
  
  });
  </code></pre>
  
  <p>Since I don't need any result from this callable I don't call get() on the Future returned from calling executor.submit(). Thus the exception is swallowed.</p>
  
  <p>What is the right way to handle such exceptions?</p>