X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.hh;h=c6f32572797c72dfe7ee348a4b6cee148ff0a83a;hb=1e7062482bb6d99a0c36b641069c73a4a93da9cc;hp=a91b157d20c3682634d6556dac6a56636abb3039;hpb=f5eba06e0b792b9e70555def60b0b98b8139381c;p=senf.git diff --git a/Utils/Exception.hh b/Utils/Exception.hh index a91b157..c6f3257 100644 --- a/Utils/Exception.hh +++ b/Utils/Exception.hh @@ -140,7 +140,8 @@ namespace senf { class ExceptionMixin { public: - std::string const & message() const; ///< get exception description + std::string message() const; ///< get exception description + std::string backtrace() const; ///< Return backtrace (if available) void append(std::string text); ///< Extend exception description /**< Adds \a text to the description text. */ @@ -152,12 +153,13 @@ namespace senf { string. This should probably be a string constant describing the exception for most derived exceptions. */ + std::string what_; private: #ifdef SENF_DEBUG void addBacktrace(); + std::string::size_type excLen_; #endif - std::string message_; }; /** \brief Extensible exception base-class