Error Handling and Exceptions

7/13/99


Click here to start


Table of Contents

Error Handling and Exceptions

Problem: Error Reporting

Exception Key Issues

Basic Exception Example

Basic Exception Example (cont.)

Trying and Catching Exceptions

Throwing and Catching

Std C++ exception

Other Std C++ exceptions

Prevent Resource Leaks During throw

Defend Against Exceptions During Ctor()

Prevent Exceptions from Leaving Dtor()

Throw by Value - Catch by Reference

Exception Specifications

Exception’s Cost

Author: Jim Stafford

Email: jcstaff@apl.jhu.edu

Home Page: http://www.apl.jhu.edu/~jcstaff