FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++ Blog: A Better Chain
C++
void main(void)

Calls, Returns and In-Between.

by Kevin Carlson
SELECTIVE IGNORANCE

Finding the Signal in the Noise

by Andrew Koenig
July 25, 2006

A Better Chain

Chained exceptions are marvelous, until you find you need some information contained in the original exception, which was thrown out before you could get to it. Paolo Brandoli demonstrates an alternative way of handling this problem in his article "Unchaining Chained Exceptions in C++." His solution involves passing along the original exception with a catch and throw macro.

Posted by Kevin Carlson at 12:58 PM  Permalink




 
INFO-LINK