How to handle exceptions in Parallel.ForEach?
<p>I have a <code>Parallel.ForEach</code> loop in my code and I am wondering how to handle exceptions. Should I catch and handle(e.g write to log) exceptions inside the loop or should I catch aggregate exception outside - encapsulate the loop in try/catch?</p>