Understanding Resumptive and Non-Resumptive Exception Handling Models

The C++ exception handling model is non-resumptive. In a resumptive model, after an exception has been handled, the program continues execution at the point where the exception was thrown. In C++, however, program execution resumes at the next statement following the catch-block. This is a source of confusion among C++ novices, who mistakenly assume that the program automatically returns to the point where an exception was thrown from.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: