35 #define FAPIDXX_ERROR_CC_VERSION \ 36 "FAPIDXX_ERROR_CC V1.0" 52 Mmessage(NULL), Mfile(NULL), Mline(0), Mcondition(NULL)
57 Mmessage(message), Mfile(NULL), Mline(0), Mcondition(NULL)
62 const char* condition):
63 Mmessage(message), Mfile(NULL), Mline(0), Mcondition(condition)
70 Mmessage(message), Mfile(file), Mline(line), Mcondition(NULL)
77 const char* condition):
78 Mmessage(message), Mfile(file), Mline(line), Mcondition(condition)
103 cerr <<
"Exception report:" << endl;
106 cerr <<
" No message" << endl;
110 cerr <<
" message: " <<
Mmessage << endl;
114 cerr <<
" triggered in \"" <<
Mfile <<
"\" at line #" <<
Mline << endl;
118 cerr <<
" by test condition:" << endl
131 const char* condition):
132 Exception(message, file, line, condition), Munit(unit) { }
140 cerr <<
" Selected file unit: " <<
Munit << endl;
static bool Mreport_on_construct
Shall we print to cerr at construction time?
virtual void report() const
Screen report.
Exception()
Creates exception with no explaning comments.
const char * Mcondition
pointer to assertion condition text string
const char * Mmessage
pointer to message string
exceptions and error handling macros (prototypes)
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
FUException(const int &unit, const char *message, const char *file, const int &line, const char *condition)
Create with message, failed assertion, and code position.
Base class for exceptions.
const char * Mfile
pointer to file name string
void base_report() const
Screen report.
virtual void report() const
Screen report.
const int & Mline
pointer to line number in source file
static void report_on_construct()
Issue a screen report on construction of exception.