FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++ Blog: Getting a Handle on Error Handling
C++
void main(void)

Calls, Returns and In-Between.

by Kevin Carlson
SELECTIVE IGNORANCE

Finding the Signal in the Noise

by Andrew Koenig
March 15, 2007

Getting a Handle on Error Handling

If you really want to understand error handling in C++, it's a good idea to understand how it came about—as a response to the problems of error handling techniques in C. The common C techniques are to report the error via a return value, bail with an abort() or exit() command, return an error indicator, or jump to an error handler. Dan Saks lays out the problems with each of these techniques.

Posted by Kevin Carlson at 01:28 PM  Permalink




 
INFO-LINK