Tag Archives: Exceptions

Thought for the Day: Exceptions

Use exceptions for exceptional circumstances. Will your program still run if the exception handling code is removed? If so, you may be misusing exceptions. In effect, you may be using exceptions as a way to emulate goto statements!

(Found this today in a collection of programming thoughts I wrote back in 2005.)