X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cci;h=b745f8056ee7e6625eb5cda9faf2434322629092;hb=d0776a27ffd63ab51b4e3419a8a6f87d11e60594;hp=f6d5a0af8abbdef2e1143a250917da722dfe0df3;hpb=a66bffcc77f006b22190e1c27cbe0cd75fc4501c;p=senf.git diff --git a/Utils/Exception.cci b/Utils/Exception.cci index f6d5a0a..b745f80 100644 --- a/Utils/Exception.cci +++ b/Utils/Exception.cci @@ -29,25 +29,39 @@ /////////////////////////////////////////////////////////////////////////// // senf::Exception + prefix_ senf::Exception::Exception(std::string const & description) : message_(description) {} +prefix_ std::string const & senf::Exception::message() + const +{ + return message_; +} + +prefix_ void senf::Exception::append(std::string text) +{ + message_ += text; +} + /////////////////////////////////////////////////////////////////////////// +// senf::SystemException -prefix_ senf::SystemException::SystemException(std::string const & descr) +prefix_ senf::SystemException::SystemException(std::string const & descr _SENF_EXC_DEBUG_ARGS_ND) { - init(descr, errno); + init(descr, errno _SENF_EXC_DEBUG_ARGS_P); } -prefix_ senf::SystemException::SystemException(int code) +prefix_ senf::SystemException::SystemException(int code _SENF_EXC_DEBUG_ARGS_ND) { - init("", code); + init("", code _SENF_EXC_DEBUG_ARGS_P); } -prefix_ senf::SystemException::SystemException(std::string const & descr, int code) +prefix_ senf::SystemException::SystemException(std::string const & descr, int code + _SENF_EXC_DEBUG_ARGS_ND) { - init(descr, code); + init(descr, code _SENF_EXC_DEBUG_ARGS_P); } prefix_ int senf::SystemException::errorNumber()