Exception handling - what happens after it leaves catch

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2011-03-17T15:00:56Z Indexed on 2011/03/18 8:10 UTC
Read the original article Hit count: 240

Filed under:
|

So imagine you've got an exception you're catching and then in the catch you write to a log file that some exception occurred. Then you want your program to continue, so you have to make sure that certain invariants are still in a a good state. However what actually occurs in the system after the exception was "handled" by a catch?

The stack has been unwound at that point so how does it get to restore it's state?

© Stack Overflow or respective owner

Related posts about c++

Related posts about exception-handling