O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exceptions

The .NET languages feature a general-purpose error processing system known as an exception mechanism. The exception mechanism is composed of two parts: throwing exceptions and catching them. To throw an exception means to signal an error; to catch one is to trap and handle an error that was previously thrown. Exceptions provide a uniform approach to signaling and processing errors, removing much of the burden of traditional error processing.

The term “exception” is short for “exceptional event.” Exceptional events are those that disrupt the normal flow of program execution. Java and C++ programmers find the .NET language exception mechanism very similar to that of Java and C++, and will be throwing and catching exceptions in no time. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required