Continue executing with thrown exception?
Posted
by fsdfa
on Stack Overflow
See other posts from Stack Overflow
or by fsdfa
Published on 2010-06-16T02:20:15Z
Indexed on
2010/06/16
2:22 UTC
Read the original article
Hit count: 264
There's something really weird, I have (in C++):
func(); cout << "Heeey" << endl;
And func, throws an exception: "throw string("ERROR");".
But the cout is done, and the exception is successfully catched. Why it prints "Heeey" if there was an exception before?.
© Stack Overflow or respective owner