Click here to Skip to main content
Click here to Skip to main content

Cloning an Exception (kinda sorta)

By , 9 Apr 2011
 
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)

About the Author

Andrew Rissing
Software Developer (Senior)
United States United States
Member
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.
 
So..If you're not moving forward, you're moving backwards.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralI cannot agree more. Wrap when it makes sense and rethrow w...membertgrt12 Jul '11 - 5:46 
GeneralReason for my vote of 5 Exactly my idea.memberJV99994 Jul '11 - 21:43 
GeneralReason for my vote of 5 It's true.memberOshtri Deka18 Apr '11 - 1:55 
GeneralYep, maintaining old(ish) code, I can't make big changes and...memberPIEBALDconsult9 Apr '11 - 14:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 9 Apr 2011
Article Copyright 2011 by Andrew Rissing
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid