X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cci;h=3366fe23467d20109a35c3d00a3e941169c142ea;hb=b89e3166f7680755683dccee5e48cb3a820185c0;hp=1b611a2c1ab8ca08d2865d55b66ac03ce1b3e1c5;hpb=8ec0b7ed2df36144b52df5aa40497fc5409c31f7;p=senf.git diff --git a/Utils/Exception.cci b/Utils/Exception.cci index 1b611a2..3366fe2 100644 --- a/Utils/Exception.cci +++ b/Utils/Exception.cci @@ -28,28 +28,37 @@ ///////////////////////////////cci.p/////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// -// senf::Exception +// senf::ExceptionMixin -prefix_ senf::Exception::Exception(std::string const & description) - : message_(description) +prefix_ senf::ExceptionMixin::ExceptionMixin(std::string const & description) + : what_(description), + message_(description) { #ifdef SENF_DEBUG addBacktrace(); #endif } -prefix_ std::string const & senf::Exception::message() +prefix_ std::string const & senf::ExceptionMixin::message() const { return message_; } -prefix_ void senf::Exception::append(std::string text) +prefix_ void senf::ExceptionMixin::append(std::string text) { message_ += text; + what_ += text; } /////////////////////////////////////////////////////////////////////////// +// senf::Exception + +prefix_ senf::Exception::Exception(std::string const & description) + : ExceptionMixin(description) +{} + +/////////////////////////////////////////////////////////////////////////// // senf::SystemException prefix_ senf::SystemException::SystemException(std::string const & descr _SENF_EXC_DEBUG_ARGS_ND)