posts - 114, comments - 204, trackbacks - 82

My Links

News

View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites

Article Categories

Archives

Post Categories

Image Galleries

Other Links

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Saturday, April 26, 2008 3:02 AM | Feedback (2) | Filed Under [ .NET ]

Powered by: