programming.nbk: Home | Index | Next Page: C++ operator overloading | Previous Page: C++ Class Static data and functions
try { <something> } catch(problem_type ¶meter) { <do something this specific kind of exception> } catch(...) { <do something to catch any other exceptions> }
In the code, generate an exception:
throw <problem_type>
programming.nbk: Home | Index | Next Page: C++ operator overloading | Previous Page: C++ Class Static data and functions
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time