Chapter 3. Errors and Exceptions

As software developers, we often daydream of a perfect world of bug-free softwaredeveloped on a remote island while sitting under a palm tree sipping a fruity beverage. But alas, back in the cubicle farm sipping on acrid coffee sit hoards of real developers, fighting real-world bugs that are not always our fault or under our control in any way.

Exceptions can occur in even the most stringently tested software, simply because not every condition can be checked for in advance. For instance, do you know what will happen if a janitor, while cleaning the data-center floor, accidentally slops some mop water into the fan enclosure of the database server? It might crash, or it might not; it might just cause some component ...

Get Expert SQL Server 2005 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.