Chapter 1. Robust ASP.NET Exception Handling

That does not compute.

— Julie Newmar as AF709, the robot from the U.S. television series My Living Doll, 1964

Most of you have probably seen old science fiction movies or television shows in which a computer, unable to process some irreconcilable paradox, utters a variation on the above phrase, often followed by some kind of meltdown or violent self-destruction. Thankfully, our web applications don't cause servers to belch smoke and flames when an error occurs!

In computer terms, an error is simply any condition that produces unwanted or unexpected results. A good strategy for dealing with potential errors is to use defensive programming techniques that help you avoid them. In part, this means proactively ...

Get Robust ASP.NET Exception Handling 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.