Need to Know More?
|
Chapter 5. Error Handling for the
|
Understanding ExceptionsAn exception occurs when a program encounters any unexpected problem, such as running out of memory or attempting to read from a file that no longer exists.
An exception
The Common Language Runtime (CLR) views an exception as any object that encapsulates any information about the problems that occurred during program execution. The FCL provides two categories of exceptions:
Both of these exception classes derive from the base Exception class. Table 5.1 lists the important properties of all three of these classes. Table 5.1. Important Properties of the Exception Class
|