35 #define STFINV_ERROR_CC_VERSION \ 36 "STFINV_ERROR_CC V1.0" 51 Mmessage(0), Mfile(0), Mline(0), Mcondition(0)
56 Mmessage(message), Mfile(0), Mline(0), Mcondition(0)
61 const char* condition):
62 Mmessage(message), Mfile(0), Mline(0), Mcondition(condition)
69 Mmessage(message), Mfile(file), Mline(line), Mcondition(0)
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
127 const char* condition)
129 std::cerr << std::endl;
130 std::cerr <<
"VIOLATION of condition: " << condition << std::endl;
131 std::cerr <<
"* in " << file <<
" at line " << line << std::endl;
132 std::cerr <<
"* message: " << message << std::endl;
static bool Mreport_on_construct
Shall we print to cerr at construction time?
Root namespace of library.
Exception()
Creates exception with no explaning comments.
handle error conditions in libstfinv (prototypes)
static void report_on_construct()
Issue a screen report on construction of exception.
void base_report() const
Screen report.
void report_violation(const char *message, const char *file, const int &line, const char *condition)
report violation of assertion
virtual void report() const
Screen report.
const int & Mline
pointer to line number in source file
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
const char * Mmessage
pointer to message string
const char * Mcondition
pointer to assertion condition text string
const char * Mfile
pointer to file name string