diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-27 10:08:10 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:31 -0400 |
commit | d01629148383261d7944e91fd2ac67b334a6834d (patch) | |
tree | b6dc76692cc13c65e7d69405c0722c5925c7fcdf /error.h | |
parent | 4716975cb18795e4a953fc705cf0b7c74d6a1c95 (diff) | |
download | fork-ledger-d01629148383261d7944e91fd2ac67b334a6834d.tar.gz fork-ledger-d01629148383261d7944e91fd2ac67b334a6834d.tar.bz2 fork-ledger-d01629148383261d7944e91fd2ac67b334a6834d.zip |
Further corrections after attempting to compile.
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -36,6 +36,14 @@ public: } }; +#define DEFINE_EXCEPTION(name) \ + class name : public exception { \ + public: \ + name(const string& _reason, \ + const context& immediate_ctxt) throw() \ + : exception(_reason, immediate_ctxt) {} \ + }; + #if 0 class error_context |