Chapter 9. Exception Handling

In this chapter

Kinds of Exceptions

The Differences Between Exception Handling in C# and C++

Exception-Handling Statements

Process of Exception Handling

User-Defined Exceptions

Errors are commonplace in programs. They can either be compile-time errors or runtime errors. Compile-time errors are errors that are identified during compilation. The most commonly occurring compile-time errors are syntax errors. These errors are always rectified because programs cannot be executed otherwise. Runtime errors occur when the program is executed. These errors cannot be predicted with much certainty. Runtime errors are called exceptions. Good programming dictates that the program must handle any runtime errors that can be anticipated. ...

Get Special Edition Using C# 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.