36 #define TF_ERROR_CC_VERSION \ 38 #define TF_ERROR_CC_CVSID \ 55 Mmessage(0), Mfile(0), Mline(0), Mcondition(0)
60 Mmessage(message), Mfile(0), Mline(0), Mcondition(0)
65 const char* condition):
66 Mmessage(message), Mfile(0), Mline(0), Mcondition(condition)
73 Mmessage(message), Mfile(file), Mline(line), Mcondition(0)
80 const char* condition):
81 Mmessage(message), Mfile(file), Mline(line), Mcondition(condition)
105 cerr <<
"Exception report:" << endl;
108 cerr <<
" No message" << endl;
112 cerr <<
" message: " <<
Mmessage << endl;
116 cerr <<
" triggered in \"" <<
Mfile <<
"\" at line #" <<
Mline << endl;
120 cerr <<
" by condition:" << endl
131 const char* condition)
133 std::cerr << std::endl;
134 std::cerr <<
"VIOLATION of condition: " << condition << std::endl;
135 std::cerr <<
"* in " << file <<
" at line " << line << std::endl;
136 std::cerr <<
"* message: " << message << std::endl;
const char * Mmessage
pointer to message string
const char * Mcondition
pointer to assertion condition text string
static void report_on_construct()
Issue a screen report on construction of exception.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
error handling code for serial port access (prototypes)
Root namespace of library.
Exception()
Creates exception with no explaning comments.
void base_report() const
Screen report.
virtual void report() const
Screen report.
const int & Mline
pointer to line number in source file
const char * Mfile
pointer to file name string
static bool Mreport_on_construct
Shall we print to cerr at construction time?
void report_violation(const char *message, const char *file, const int &line, const char *condition)
report violation of assertion