#include <boost/preprocessor/cat.hpp>
#include <boost/utility.hpp>
#include <boost/type_traits/is_convertible.hpp>
+#include <senf/config.hh>
//#include "Exception.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
/** \defgroup exception Exception classes
std::string what_;
private:
-#ifdef SENF_DEBUG
+#ifdef SENF_BACKTRACE
void addBacktrace();
+#endif
+#ifdef SENF_DEBUG
std::string::size_type excLen_;
#endif
};
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);
virtual ~SystemException() throw();
- ///@}
- ///////////////////////////////////////////////////////////////////////////
+ //\}
+ //-////////////////////////////////////////////////////////////////////////
int errorNumber() const; ///< Error code (\c errno number)
char const * errorString() const; ///< Error string (\c strerror() value)
}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#include "Exception.cci"
//#include "Exception.ct"
#include "Exception.cti"