95 "usage: exceptiontest [-b] [-nr] [-roc]" "\n" 96 " or: exceptiontest --help|-h" "\n" 104 "-b throw base class\n" 105 "-nr do not resume\n" 106 "-roc report on construct\n" 129 cerr << usage_text << endl;
137 if (cmdline.optset(0))
139 cerr << usage_text << endl;
140 cerr << help_text << endl;
187 cout <<
"caught exception" << endl;
195 cout <<
"again" << endl;
201 cout <<
"caught exception" << endl;
209 cout <<
"survived" << endl;
#define EXCEPTIONTEST_VERSION
static void restore_report_state()
Restore previous report state.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
Namespace containing all components of module commandline. ,.
Evaluates commandline by calling long_getopt. ,You may instantiate a Commandline object by passing th...
static void report_on_construct()
Issue a screen report on construction of exception.
struct to define options ,This struct is used to define a list of options. An example is: ...
Base class for exceptions.
virtual void report() const
Screen report.