title: WPF throw exception from worker thread but continue
body: <p>I have a scenario where a worker thread performs a task that looks like</p>
  
  <pre><code>try
  {    
      for()
      {
          functionA();
          functionB(); 
      }
  }
  catch(Exception ex)
  {
      throw new Exception("Message");    
  }
  </code></pre>
  
  <p>I'm basically re-throwing the exception so that when the worker completes, the UI thread will receive the exception.
  Now, if an exception occurs in <code>functionA</code> I'd like to throw the exception but continue the loop and not stop. How can I achieve this? </p>
  
  <p>edit: If it isn't clear, this is so that the UI can be notified that an exception has occurred but not stop the worker </p>