Daily Archives: January 8, 2004

Exception Declaration Convention

In a Catch statement I often try to catch specific types of exceptions and then a generic exception.

The generic is

catch ex as Exception

A HTTP

catch hEx as HTTPException

But a SQL

catch exS as SQLException

Isn’t that silly, that I can’t bring myself to follow the convention for SQLExceptions?