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/py_value.cc | |
parent | 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (diff) | |
download | ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.gz ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.bz2 ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.zip |
Did more work on the utility code.
Diffstat (limited to 'src/py_value.cc')
-rw-r--r-- | src/py_value.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/py_value.cc b/src/py_value.cc index 1a43ebc1..19c3b3a4 100644 --- a/src/py_value.cc +++ b/src/py_value.cc @@ -48,13 +48,13 @@ amount_t value_getitem(value_t& val, int i) switch (val.type) { case value_t::BOOLEAN: - throw_(value_exception, "Cannot cast a boolean to an amount"); + throw_(value_error, "Cannot cast a boolean to an amount"); case value_t::INTEGER: return long(val); case value_t::DATETIME: - throw_(value_exception, "Cannot cast a date/time to an amount"); + throw_(value_error, "Cannot cast a date/time to an amount"); case value_t::AMOUNT: return *((amount_t *) val.data); @@ -66,13 +66,13 @@ amount_t value_getitem(value_t& val, int i) return balance_pair_getitem(*((balance_pair_t *) val.data), i); case value_t::STRING: - throw_(value_exception, "Cannot cast a string to an amount"); + throw_(value_error, "Cannot cast a string to an amount"); case value_t::XML_NODE: return (*(xml::node_t **) data)->to_value(); case value_t::POINTER: - throw_(value_exception, "Cannot cast a pointer to an amount"); + throw_(value_error, "Cannot cast a pointer to an amount"); case value_t::SEQUENCE: return (*(value_t::sequence_t **) val.data)[i]; |