diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-30 11:22:08 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:34 -0400 |
commit | 21af83013f3b1bae511a61b9e27224ab3de235c1 (patch) | |
tree | bf0eea45f33e7e269220adc6ce37815f7bc14a3f /src/report.cc | |
parent | 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (diff) | |
download | fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.gz fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.bz2 fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.zip |
Did more work on the utility code.
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc index 116747ef..072d0d8b 100644 --- a/src/report.cc +++ b/src/report.cc @@ -22,7 +22,7 @@ void report_t::apply_transforms(xml::document_t * document) void report_t::abbrev(value_t& result, xml::xpath_t::scope_t * locals) { if (locals->args.size() < 2) - throw_(exception, "usage: abbrev(STRING, WIDTH [, STYLE, ABBREV_LEN])"); + throw_(std::logic_error, "usage: abbrev(STRING, WIDTH [, STYLE, ABBREV_LEN])"); string str = locals->args[0].to_string(); long wid = locals->args[1]; @@ -41,7 +41,7 @@ void report_t::abbrev(value_t& result, xml::xpath_t::scope_t * locals) void report_t::ftime(value_t&, xml::xpath_t::scope_t * locals) { if (locals->args.size() < 1) - throw_(exception, "usage: ftime(DATE [, DATE_FORMAT])"); + throw_(std::logic_error, "usage: ftime(DATE [, DATE_FORMAT])"); moment_t date = locals->args[0].to_datetime(); |