Jason Bock

Home Biography Speaking Articles Books Music

Exception Madness

Recently I blogged about exception handling. Today I saw code that looked like this:

Try
  '  Lots of data access code goes here...
Catch exp As Exception
  Throw
End Try

And if that wasn’t bad enough, someone at Magenic informed me of a “documented standard” he had to conform to:

Try
  '  ALL code within the method goes here
Catch exp As Exception
  Throw New Exception(exp.Message)
End Try

… sigh …

Published: 07.19.2006 12:25:51 PM CST