Exception handling in batch operations with the AggregateException(jclaes.blogspot.com)
submitted by
JefClaes(650) 2 years ago
Doing batch operations and elegantly handling exceptions is a problem which every developer has faced before. In .NET 3.5 or older there is no out-of-the-box solution to handle exceptions in these types of scenarios, without being inconsistent to the normal flow of exception handling. .NET 4 introduces the AggregateException; an exception representing multiple exceptions. The AggregateException was introduced in the first place to be used with the parallel framework, but it can be used in other scenarios as well, such as batch operations.
|category: Tips & Tricks
|Views: 37
tags:
Tips another
Everyones tags:
Your Tags: