report violation of assertion
report violation of condition
- Parameters
-
message | message of type char* |
file | name of source code file |
line | source code line number |
condition | assert condition |
t | type of incident to be reported |
Definition at line 52 of file report.cc.
References Ffatal, Fnonfatal, Fwarning, and datrw::libversion.
Referenced by datrw::Exception::base_report().
60 cerr <<
"ERROR (non-fatal)";
72 cerr <<
"| A problem occured while " 73 "reading or writing time series data" << endl;
74 if (!condition.empty())
76 cerr <<
"| the following condition is violated:" << endl
77 <<
"| \"" << condition <<
"\"" << endl;
81 cerr <<
"| in \"" << file <<
"\" at line #" << line << endl;
85 cerr <<
"| no further comment is provided." << endl;
89 const std::string delimiter(
"\n");
90 std::string::size_type posend=0, pos=0;
91 std::string::size_type len=0;
92 while (posend!=std::string::npos)
94 posend=message.find(delimiter, pos);
97 cerr << message.substr(pos, len) << endl;
98 if (posend!=std::string::npos) { len+=delimiter.length(); }
104 cerr <<
"This error is fatal. The program probably will abort..." a fatal error; processing wil abort as a consequence
just a warning; processing can proceeed
const char *const libversion
Version string.
an error, but non-fatal; processing will proceed