class ExceptionMixin
{
public:
- std::string const & message() const;
+ std::string const & message() const; ///< get exception description
- void append(std::string text); ///< Extend exception description
+ void append(std::string text); ///< Extend exception description
/**< Adds \a text to the description text. */
protected:
string. This should probably be a string constant
describing the exception for most derived
exceptions. */
-
+ std::string what_;
private:
#ifdef SENF_DEBUG
void addBacktrace();
virtual ~Exception() throw();
virtual char const * what() const throw();
+ ///< get exception description and backtrace if available
+ /**< get description of the exception (message()) and backtrace
+ information if SENF is compiled with \c SENF_DEBUG */
protected:
explicit Exception(std::string const & description = "");
void init(std::string const & descr, int code _SENF_EXC_DEBUG_ARGS_ND);
int code_;
- std::string what_;
};
# ifdef SENF_DEBUG