I
Ian Collins
Contrary to the other posters in this thread, C++ exceptions cannot be
thrown from anywhere.
In short, a C++ exception can only result from an executed "throw"
statement or or a failed dynamic_cast<reference_type>. (IIRC, those
are the only two things.)
Which is what I meant by anywhere, anywhere the programmer chooses to
throw one, not just with a try block. I didn't mean that can appear out
of nowhere!