Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string CombineAggregateException(AggregateException exception)
- {
- string message = exception.Message;
- for (int i = 0; i < exception.InnerExceptions.Count; i++)
- message += Environment.NewLine + string.Format("{0:N0}: {1}", i + 1, exception.InnerExceptions[i].Message);
- return message;
- }
Advertisement
Add Comment
Please, Sign In to add comment