39 #ifndef LINEAR_ERROR_H_VERSION 41 #define LINEAR_ERROR_H_VERSION \ 75 const char* condition);
80 const char* condition);
86 virtual void report()
const;
123 const char* condition,
128 virtual void report()
const;
154 #define LINEAR_Xassert(C,M,E) \ 155 if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); } 166 #define LINEAR_LAPACK_failure(C,N,M,V) \ 167 if ((C)) { throw( linear::LapackException ( M , N , __FILE__, \ 168 __LINE__, #C, V )); } 176 #define LINEAR_assert(C,M) LINEAR_Xassert( C , M , linear::Exception ) 183 #define LINEAR_abort(M) \ 184 throw( linear::Exception ( M , __FILE__, __LINE__ )) 195 #define LINEAR_debug(C,N,M) \ 197 std::cerr << "DEBUG (" << N << ", " \ 198 << __FILE__ << " line #" << __LINE__ << "):" << std::endl \ 199 << " " << M << std::endl; \ 203 #endif // LINEAR_ERROR_H_VERSION (includeguard) static bool Mreport_on_construct
Shall we print to cerr at construction time?
const char * Mmessage
pointer to message string
virtual void report() const
Screen report.
void base_report() const
Screen report.
int value() const
return INFO value
const int & Mline
pointer to line number in source file
static void report_on_construct()
Issue a screen report on construction of exception.
Exception()
Creates exception with no explaning comments.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
int Mvalue
members to remember
const char * Mcondition
pointer to assertion condition text string
const char * Mfile
pointer to file name string
const char * subroutine() const
return name of LAPACK subroutine
virtual void report() const
Screen report.
LapackException(const char *message, const char *subroutine, const char *file, const int &line, const char *condition, const int &value)
take number of requested elements and their size
Exception thrown in case of LAPACK return value error.
Modules of liblinearxx.a.
virtual ~LapackException()
Needs a virtual destructor.
virtual ~Exception()
Needs a virtual destructor.
Base class for exceptions.