Blog - Title

February, 2009

  • .NET Blog

    Why catch(Exception)/empty catch is bad

    • 69 Comments
    You’ve seen the advice before— it’s not a good programming practice to catch System.Exception . Because managed exceptions are hierarchical, catching the top of the hierarchy—e.g., catch(Exception)—is an easy way to make sure that you catch all exceptions...
  • .NET Blog

    Catch, Rethrow and Filters - Why you should care?

    • 52 Comments
    A very common pattern in the usage of managed exception handling is that of catching an exception, inspecting it's type and rethrowing it once you realize it was not the exception you wanted to handle. Below is such an example (and should be avoided in...
Page 1 of 1 (2 items)