3 #ifndef __stir_error_H__ 4 #define __stir_error_H__ 26 #include "TextWriter.h" 49 void error(
const char*
const s, ...);
72 template <
class STRING>
76 std::stringstream sstr;
77 sstr <<
"\nERROR: " <<
string << std::endl;
78 writeText(sstr.str().c_str(), ERROR_CHANNEL);
79 throw std::runtime_error(sstr.str());
void error(const STRING &string)
Use this function for writing error messages and throwing an exception.
Definition: error.h:74
basic configuration include file