Throwing multiple exceptions in .Net/C#

November 10th, 2008 by jason Leave a reply »

I posted a question on Stackoverflow about throwing multiple exceptions.  Here is part of the question:

"In an application I work on, any business logic error causes an exception to be thrown, and the calling code handles the exception. This pattern is used throughout the application and works well. I have a situation where I will be attempting to execute a number of business tasks from inside the business layer. The requirement for this is that a failure of one task should not cause the process to terminate. Other tasks should still be able to execute. In other words, this is not an atomic operation. The problem I have is that at the end of the operation, I wish to notify the calling code that an exception or exceptions did occur by throwing an exception."

No TweetBacks yet. (Be the first to Tweet this post)
Advertisement

Leave a Reply

You must be logged in to post a comment.