34 #define LINEAR_ERROR_CC_VERSION \ 35 "LINEAR_ERROR_CC V1.0 " 50 Mmessage(0), Mfile(0), Mline(0), Mcondition(0)
55 Mmessage(message), Mfile(0), Mline(0), Mcondition(0)
60 const char* condition):
61 Mmessage(message), Mfile(0), Mline(0), Mcondition(condition)
68 Mmessage(message), Mfile(file), Mline(line), Mcondition(0)
75 const char* condition):
76 Mmessage(message), Mfile(file), Mline(line), Mcondition(condition)
100 cerr <<
"Exception report:" << endl;
103 cerr <<
" No message" << endl;
107 cerr <<
" message: " <<
Mmessage << endl;
111 cerr <<
" triggered in \"" <<
Mfile <<
"\" at line #" <<
Mline << endl;
115 cerr <<
" by condition:" << endl
125 const char* subroutine,
128 const char* condition,
130 Exception(
"ERROR: return value of LAPACK subroutine!",
131 file,line,condition), Mvalue(value), Msubroutine(subroutine),
132 Mmeaning(message) { }
138 std::cerr <<
" The LAPACK subroutine \"" <<
Msubroutine 139 <<
"\" returned " <<
Mvalue <<
"." << std::endl;
140 std::cerr <<
" This means:" << std::endl;
141 std::cerr <<
" " <<
Mmeaning << std::endl;
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.
Exception class for this library (prototypes)
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
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
Modules of liblinearxx.a.
Base class for exceptions.