Chapter 5 Exception Processing

This chapter describes macros and global functions that relate to exception processing.

For examples and more details, see the section “Exception Handling” (on page 61 in Chapter 2) and the section “Catching Exceptions” (in Chapter 12, “Exceptions”), both in the Class Libraries User's Guide. You may also wish to refer to class CException, later in this book.

Note:

The AfxThrow functions are equivalent to the THROW macro with the appropriate exception class as an argument.

To use these macros and global functions, add the following directive at the top of your program:

#include <afx.h>