34 #define TF_ERROR_CC_VERSION \ 50 Mmessage(0), Mfile(0), Mline(0), Mcondition(0)
55 Mmessage(message), Mfile(0), Mline(0), Mcondition(0)
60 const char* condition):
61 Mmessage(message), Mfile(0), Mline(0), Mcondition(condition)
68 Mmessage(message), Mfile(file), Mline(line), Mcondition(0)
75 const char* condition):
76 Mmessage(message), Mfile(file), Mline(line), Mcondition(condition)
100 cerr <<
"Exception report:" << endl;
103 cerr <<
" No message" << endl;
107 cerr <<
" message: " <<
Mmessage << endl;
111 cerr <<
" triggered in \"" <<
Mfile <<
"\" at line #" <<
Mline << endl;
115 cerr <<
" by condition:" << endl
Exception()
Creates exception with no explaining comments.
const char * Mcondition
pointer to assertion condition text string
const char * Mmessage
pointer to message string
static void report_on_construct()
Issue a screen report on construction of exception.
const char * Mfile
pointer to file name string
const int & Mline
pointer to line number in source file
static void dont_report_on_construct()
Issue NO 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.
virtual void report() const
Screen report.