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. ...
Get Special Edition Using® Microsoft® ASP.NET 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.