47 #ifndef AFF_ERROR_H_VERSION 49 #define AFF_ERROR_H_VERSION \ 83 const char* condition);
88 const char* condition);
96 virtual void report()
const;
133 virtual void report()
const;
153 #define AFF_Xassert(C,M,E) \ 154 if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); } 162 #define AFF_assert(C,M) AFF_Xassert( C , M , aff::Exception ) 170 #define AFF_abort(M) \ 171 throw( aff::Exception ( M , __FILE__, __LINE__ )) 173 #endif // AFF_ERROR_H_VERSION (includeguard) virtual ~AllocException()
provide virtual destructor
Root namespace of library.
some typedefs we refer to
AllocException(const Tsize &n, const Tsize &size)
take number of requested elements and their size
virtual ~Exception()
provide virtual destructor
const char * Mmessage
pointer to message string
Exception()
Creates exception with no explaning comments.
virtual void report() const
Screen report.
static bool Mreport_on_construct
Shall we print to cerr at construction time?
virtual void report() const
Screen report.
static void report_on_construct()
Issue a screen report on construction of exception.
Base class for exceptions.
const int & Mline
pointer to line number in source file
const char * Mcondition
pointer to assertion condition text string
const char * Mfile
pointer to file name string
Tsize Mn
members to remember
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
void base_report() const
Screen report.
Exception thrown in case of allocation error.
size_t Tsize
Type to hold the size of an array dimension.