Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

Cloning an Exception (kinda sorta)

5.00/5 (5 votes)
9 Apr 2011CPOL 12.7K  
I would actually go the route getting those developers to follow good practice. As a whole, the field would be better off if developers like that were mentored rather than something like this.So, I would recommend using either of the techniques you put forth originally (using the Data...
I would actually go the route getting those developers to follow good practice. As a whole, the field would be better off if developers like that were mentored rather than something like this.

So, I would recommend using either of the techniques you put forth originally (using the Data property or a specialized exception).

Granted, if you're working in legacy code, it isn't always possible, but it is the ideal. :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)