diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-31 06:24:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-31 06:24:45 -0400 |
commit | 99313ebc6c3779f692f9f1bd70cc69a236f5eb78 (patch) | |
tree | 44a553891a9aaa148084d8e011b2d326401343e9 /xact.cc | |
parent | 8afd926a27af55862ce360970e05d747f249a0da (diff) | |
download | fork-ledger-99313ebc6c3779f692f9f1bd70cc69a236f5eb78.tar.gz fork-ledger-99313ebc6c3779f692f9f1bd70cc69a236f5eb78.tar.bz2 fork-ledger-99313ebc6c3779f692f9f1bd70cc69a236f5eb78.zip |
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.
Diffstat (limited to 'xact.cc')
-rw-r--r-- | xact.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -72,7 +72,7 @@ namespace { value_t get_payee(call_scope_t& scope) { xact_t& xact(downcast<xact_t>(*scope.parent)); - return value_t(xact.entry->payee, true); + return string_value(xact.entry->payee); } value_t get_account(call_scope_t& scope) @@ -87,7 +87,7 @@ namespace { else name = string("(") + name + ")"; } - return value_t(name, true); + return string_value(name); } value_t get_account_base(call_scope_t& scope) @@ -163,6 +163,7 @@ bool xact_t::valid() const return true; } +#if 0 xact_context::xact_context(const xact_t& _xact, const string& desc) throw() : file_context("", 0, desc), xact(_xact) { @@ -177,5 +178,6 @@ xact_context::xact_context(const xact_t& _xact, const string& desc) throw() } line = xact.beg_line; } +#endif } // namespace ledger |