summaryrefslogtreecommitdiff
path: root/src/exceptionbase.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/exceptionbase.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/exceptionbase.h b/src/exceptionbase.h
index 391e41d..4d1d2ff 100644
--- a/src/exceptionbase.h
+++ b/src/exceptionbase.h
@@ -12,6 +12,12 @@
12#include <exception> 12#include <exception>
13#include <stdarg.h> 13#include <stdarg.h>
14 14
15// This shouldn't normally be defined here, I don't think it's all that portable
16// and it also changes the class interface, we should find out how much of
17// an issue that is, we could just put in an empty getBacktrace() function for
18// when you don't have support for it...
19#define LIBBU_EXCEPTION_BACKTRACE
20
15namespace Bu 21namespace Bu
16{ 22{
17 /** 23 /**
@@ -83,9 +89,15 @@ namespace Bu
83 */ 89 */
84 void setWhat( const char *lpText ); 90 void setWhat( const char *lpText );
85 91
92 const char *getBacktrace() const throw();
93
86 private: 94 private:
87 int nErrorCode; /**< The code for the error that occured. */ 95 int nErrorCode; /**< The code for the error that occured. */
88 char *sWhat; /**< The text string telling people what went wrong. */ 96 char *sWhat; /**< The text string telling people what went wrong. */
97#ifdef LIBBU_EXCEPTION_BACKTRACE
98 char *sBT; /**< The backtrace text. */
99 void createBacktrace();
100#endif
89 }; 101 };
90} 102}
91 103