35 #ifndef TSXX_ERROR_H_VERSION 37 #define TSXX_ERROR_H_VERSION \ 69 const char* condition);
74 const char* condition);
82 virtual void report()
const;
118 #define TSXX_Xassert(C,M,E) \ 119 if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); } 127 #define TSXX_assert(C,M) TSXX_Xassert( C , M , ts::error::Exception ) 135 #define TSXX_abort(M) \ 136 throw( ts::error::Exception ( M , __FILE__, __LINE__ )) 138 #endif // TSXX_ERROR_H_VERSION (includeguard) const char * Mmessage
pointer to message string
const char * Mfile
pointer to file name string
Base class for exceptions.
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.
virtual ~Exception()
provide virtual destructor
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