Papers/programming
try, catch and throw statements
tomato13
2008. 5. 28. 14:51
http://msdn.microsoft.com/en-us/library/6dekhbbc(VS.80).aspx
http://www.eastcoastgames.com/articles/cppexception.html
http://en.wikipedia.org/wiki/Exception_handling
...
The real power of C++ exception handling lies not only in its ability to deal with exceptions of varing types, but also in its ability to automatically call destructor functions during stack unwinding, for all local objects constructed before the exception was thrown.
...
p.s)
In systems without exceptions, the routine would need to return some special error code. However, this sometimes is complicated by the semipredicate problem[1]
(http://en.wikipedia.org/wiki/Exception_handling)
[1] http://en.wikipedia.org/wiki/Semipredicate_problem