tags:

views:

45

answers:

1

Hi,

I need to return an exception that contains a list of exceptions. This is easy enough to do, but I'd like to know if there is a built-in Exception Class that does this as I'd hate to "roll my own" instead of following built-in, documented classes.

Thanks, Larry

+1  A: 

There is the InnerException property, but if you need more than that, you'll need to roll your own.

Lucas Jones
Thanks - it is theoretically possible to create a linked list of Exceptions, using the InnerException property, but the purpose of the InnerException is to give a reference to the Exception that caused that Exception (that contains the property). So, I think it would be a mis-use of the property to use it for Exceptions that are basically orthogonal, so I will (and have) gone ahead with my own ExceptionList class.
Larry Watanabe