X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FException.hh;h=0116220a8289f8e859680fdc1257be8760557ba0;hb=5b2e9a63a43027c71ac470ac9bdecb72e8974951;hp=ffd2bb47f0c7bd424630e4e67257032e847f7d64;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Utils/Exception.hh b/senf/Utils/Exception.hh index ffd2bb4..0116220 100644 --- a/senf/Utils/Exception.hh +++ b/senf/Utils/Exception.hh @@ -35,9 +35,10 @@ #include #include #include +#include //#include "Exception.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// /** \defgroup exception Exception classes @@ -59,7 +60,7 @@ This will add the user information to any %senf exception thrown. The Exception is however not a stream. If you need to do more extensive formating, either use an intermediate string-stream or - use Boost.Format: + use Boost.Format: \code try { @@ -156,8 +157,10 @@ namespace senf { std::string what_; private: -#ifdef SENF_DEBUG +#ifdef SENF_BACKTRACE void addBacktrace(); +#endif +#ifdef SENF_DEBUG std::string::size_type excLen_; #endif }; @@ -278,9 +281,9 @@ namespace senf { class SystemException : public Exception { public: - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Structors and default members - ///@{ + //\{ explicit SystemException(std::string const & descr = "" _SENF_EXC_DEBUG_ARGS); explicit SystemException(int code _SENF_EXC_DEBUG_ARGS); @@ -288,8 +291,8 @@ namespace senf { virtual ~SystemException() throw(); - ///@} - /////////////////////////////////////////////////////////////////////////// + //\} + //-//////////////////////////////////////////////////////////////////////// int errorNumber() const; ///< Error code (\c errno number) char const * errorString() const; ///< Error string (\c strerror() value) @@ -314,7 +317,7 @@ namespace senf { } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "Exception.cci" //#include "Exception.ct" #include "Exception.cti"