summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'format.h')
-rw-r--r--format.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/format.h b/format.h
index 6c9d2e5f..8348e863 100644
--- a/format.h
+++ b/format.h
@@ -219,13 +219,7 @@ class format_equity : public item_handler<account_t>
virtual void operator()(account_t& account);
};
-class format_error : public error
-{
- public:
- format_error(const string& reason, error_context * ctxt = NULL) throw()
- : error(reason, ctxt) {}
- virtual ~format_error() throw() {}
-};
+DECLARE_EXCEPTION(format_error, std::runtime_error);
} // namespace ledger