X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=28073e67e91a3704fdc941959adfda32676fc620;hb=e7aa3355bca498de96d75d441865216706e74e3f;hp=5e692773f0a7725353e5c8837a8c032527148630;hpb=1d247d12d1759ffd77f456efe3a52f03dd289994;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index 5e69277..28073e6 100644 --- a/Utils/Exception.cc +++ b/Utils/Exception.cc @@ -44,6 +44,17 @@ prefix_ char const * senf::Exception::what() return message_.c_str(); } +/////////////////////////////////////////////////////////////////////////// +// senf::SystemException + +prefix_ void senf::SystemException::init(std::string const & where, int code) +{ + code_ = code; + if (! where.empty()) + (*this) << where << ": "; + (*this) << "(" << code << ") " << description(); +} + ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_