summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-27 10:08:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:31 -0400
commit0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f (patch)
tree750d64f6817282a6f4744058f73164a2996f6b03 /format.cc
parentd01629148383261d7944e91fd2ac67b334a6834d (diff)
downloadfork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.gz
fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.bz2
fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.zip
Restructured the code to use the new utility code in utils.h.
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.cc b/format.cc
index 78734d72..1b4be467 100644
--- a/format.cc
+++ b/format.cc
@@ -89,7 +89,7 @@ void format_t::parse(const string& fmt)
if (current->max_width != -1 && current->min_width != -1 &&
current->max_width < current->min_width)
- throw new format_error("Maximum width is less than the minimum width");
+ throw_(format_exception, "Maximum width is less than the minimum width");
switch (*p) {
case '|':
@@ -111,7 +111,7 @@ void format_t::parse(const string& fmt)
p++;
}
if (*p != close)
- throw new format_error(string("Missing '") + close + "'");
+ throw_(format_exception, "Missing '" << close << "'");
if (open == '{') {
assert(! current->xpath);