X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=f94be754b992e56b8ee7a70c0dd2aa627f18619d;hb=16d94efc2159cba35fc44e5b26747ae0a2ab237b;hp=e23357f23f95f24bfe4b4c9a083f34c126313269;hpb=15ac5ae4166db4387b4a219b7c42f7fc5a9681a6;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index e23357f..f94be75 100644 --- a/Utils/Exception.cc +++ b/Utils/Exception.cc @@ -47,9 +47,14 @@ prefix_ char const * senf::Exception::what() /////////////////////////////////////////////////////////////////////////// // senf::SystemException -prefix_ void senf::SystemException::init(std::string const & descr, int code) +prefix_ void senf::SystemException::init(std::string const & descr, int code + _SENF_EXC_DEBUG_ARGS_ND) { code_ = code; +# ifdef SENF_DEBUG + if (file && line) + (*this) << "Exception at " << file << ":" << line << "\n"; +# endif (*this) << "[" << errorString() << "]"; if (! descr.empty()) (*this) << " " << descr; }