33 #define TSXX_ERROR_CC_VERSION \ 51 Mmessage(NULL), Mfile(NULL), Mline(0), Mcondition(NULL)
56 Mmessage(message), Mfile(NULL), Mline(0), Mcondition(NULL)
61 const char* condition):
62 Mmessage(message), Mfile(NULL), Mline(0), Mcondition(condition)
69 Mmessage(message), Mfile(file), Mline(line), Mcondition(NULL)
76 const char* condition):
77 Mmessage(message), Mfile(file), Mline(line), Mcondition(condition)
101 cerr <<
"Exception report:" << endl;
104 cerr <<
" No message" << endl;
108 cerr <<
" message: " <<
Mmessage << endl;
112 cerr <<
" triggered in \"" <<
Mfile <<
"\" at line #" <<
Mline << endl;
116 cerr <<
" by condition:" << endl
const char * Mmessage
pointer to message string
const char * Mfile
pointer to file name string
Exception()
Creates exception with no explaning comments.
static void report_on_construct()
Issue a screen report on construction of exception.
static bool Mreport_on_construct
Shall we print to cerr at construction time?
void base_report() const
Screen report.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
error handling for libtsxx (prototypes)
All stuff in this library will be placed within namespace ts.
const char * Mcondition
pointer to assertion condition text string
virtual void report() const
Screen report.
const int & Mline
pointer to line number in source file