title: ScheduledExecutorService Exception handling
body: <p>I use ScheduledExecutorService to execute a method periodically.</p>
  
  <p>p-code:</p>
  
  <pre><code>ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
  ScheduledFuture&lt;?&gt; handle =
          scheduler.scheduleWithFixedDelay(new Runnable() {
               public void run() { 
                   //Do business logic, may Exception occurs
               }
          }, 1, 10, TimeUnit.SECONDS);
  </code></pre>
  
  <p>My question:</p>
  
  <p>How to continue the scheduler, if <code>run()</code> throws Exception? 
  Should I try-catch all Exception in method <code>run()</code>? Or any built-in callback method to handle the Exception? Thanks!</p>