what.cc (269B)
1 #include "error" 2 #include "../config/config" 3 4 char const *Error::what() const throw (){ 5 ostringstream o; 6 if (config.prefixtimestamp()) { 7 Timestamp tm; 8 o << tm.desc() << ' '; 9 } 10 o << pthread_self() << " ERROR: " << desc; 11 return (o.str().c_str()); 12 }