14 November 2010

Try-Catch

Found this try-catch statement in white paper on "Framework for Secure Application Design and Development":

try
{
do_something_unspeakably_cool();
do_something_potentially_bad();
do_something_weird_that_might_have_enexpected_results();
...
}
catch( char * str )
{
cout << "Exception raised: " <<
str << '\n';
}

Explore life!