Geeks With Blogs


View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites

Anthony Trudeau April 2008 Entries
Catching General Exceptions
Probably all of us know now that you shouldn't catch general exceptions (CA1031). There are practical reasons for this rule such as the fact that you really cannot handle an OutOfMemoryException or StackOverflowException for example. Here is an example of catching a general exception for those that might not know what I'm talking about. try { } catch (Exception ex) { } There are also more intrinsic design reasons why you shouldn't catch a general exception. And if there is no other reason, if you're ......

Posted On Saturday, April 26, 2008 3:02 AM

Copyright © Anthony Trudeau | Powered by: