36 PlanckError::PlanckError(
const string &message) : msg (message) {}
37 PlanckError::PlanckError(
const char *message) : msg (message) {}
40 PlanckError::~PlanckError() {}
42 void planck_failure__(
const char *file,
int line,
const char *func,
45 cerr <<
"Error encountered at " << file <<
", line " << line << endl;
46 if (func) cerr <<
"(function " << func <<
")" << endl;
47 if (msg!=
"") cerr << endl << msg << endl;
51 void planck_failure__(
const char *file,
int line,
const char *func,
53 { planck_failure__ (file,line,func,
string(msg)); }