summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-27 10:08:10 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:31 -0400
commitd01629148383261d7944e91fd2ac67b334a6834d (patch)
treeb6dc76692cc13c65e7d69405c0722c5925c7fcdf /error.h
parent4716975cb18795e4a953fc705cf0b7c74d6a1c95 (diff)
downloadfork-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/error.h b/error.h
index 93116054..44bca430 100644
--- a/error.h
+++ b/error.h
@@ -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