From 99313ebc6c3779f692f9f1bd70cc69a236f5eb78 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 31 Jul 2008 06:24:45 -0400 Subject: Revised the way that exceptions are thrown around. Instead of context being a complicated string of pointers, it's now just a global block of text that gets appended to as the error is being thrown up, and can be displayed at the catch point if desired. There are almost no cases where a thrown exception will not result in an error message being displayed to the user. --- balance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'balance.h') diff --git a/balance.h b/balance.h index ea070ea3..0326ef13 100644 --- a/balance.h +++ b/balance.h @@ -48,7 +48,7 @@ namespace ledger { -DECLARE_EXCEPTION(error, balance_error); +DECLARE_EXCEPTION(balance_error, std::runtime_error); /** * @class balance_t -- cgit v1.2.3