// Custom includes
#include <cstring>
+#include <sstream>
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
-prefix_ char const * satcom::lib::SystemException::what()
+prefix_ void senf::SystemException::init()
+{
+ std::stringstream s;
+ if (where)
+ s << where << ": ";
+ s << "(" << err << ") " << std::strerror(err);
+ buffer_ = s.str();
+}
+
+prefix_ char const * senf::SystemException::what()
const throw()
{
- return std::strerror(this->err);
+ return buffer_.c_str();
}
///////////////////////////////cc.e////////////////////////////////////////
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// c-file-style: "senf"
// End: