try/swallow

by Jon Sagara Thursday, August 21 2008 10:33 AM

Dear fellow coders,

Please don't ever do this:

private static void SomeFunc()

{

    try

    {

        DoSomething();

        DoSomethingElse();

    }

    catch

    {

        // eat the exception  <-- NO!  BAD CODER!

    }

}

Love,

Jon

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Blog

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen