X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cti;h=ea123701100f23b8a71f46539b020a5a3dd201fe;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=a3989080a8b9fafbc052068a5a3ab67518eb15e4;hpb=17d44437f7fb8ee68a96ed55fc327c746c161142;p=senf.git diff --git a/Utils/Exception.cti b/Utils/Exception.cti index a398908..ea12370 100644 --- a/Utils/Exception.cti +++ b/Utils/Exception.cti @@ -32,13 +32,33 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ typename boost::enable_if< boost::is_convertible, Exc & >::type +prefix_ typename boost::enable_if< boost::is_convertible, Exc & >::type senf::operator<<(Exc const & exc, Arg const & arg) { const_cast(exc).append( boost::lexical_cast(arg) ); return const_cast(exc); } +/////////////////////////////////////////////////////////////////////////// +// senf::WrapExcecption + +template +prefix_ senf::WrapException::WrapException(BaseException const & base) + : ExceptionMixin(base.what()), BaseException(base) +{} + +template +prefix_ senf::WrapException::~WrapException() + throw() +{} + +template +prefix_ char const * senf::WrapException::what() + const throw() +{ + return message().c_str(); +} + /////////////////////////////cti.e/////////////////////////////////////// #undef prefix_