Empty Catch Blocks

I’ve just found 22 examples of this anti-pattern in a small .NET project: try { // (Stuff here) } catch {} Oh yes, the empty catch block. Joy of joys. Declaring an empty catch block is equivalent to professing that: "Sometimes this code

Exception Handling Worst Practices

Oh, my eyes! I'm currently looking at a VB.NET class which includes a dozen examples of the following exception "handling" anti-pattern: 'Send e-mail Try Dim smtp As New SmtpClient() smtp.Send(message) Catch ex As Exception ThrowException(