summaryrefslogtreecommitdiff
path: root/value.h
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 /value.h
parentd01629148383261d7944e91fd2ac67b334a6834d (diff)
downloadledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.gz
ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.bz2
ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.zip
Restructured the code to use the new utility code in utils.h.
Diffstat (limited to 'value.h')
-rw-r--r--value.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/value.h b/value.h
index 2382d98f..2b0adf2b 100644
--- a/value.h
+++ b/value.h
@@ -560,6 +560,7 @@ template <> value_t::operator string() const;
std::ostream& operator<<(std::ostream& out, const value_t& val);
+#if 0
class value_context : public error_context
{
value_t * bal;
@@ -570,14 +571,9 @@ class value_context : public error_context
virtual void describe(std::ostream& out) const throw();
};
+#endif
-class value_error : public error {
- public:
- value_error(const string& _reason,
- error_context * _ctxt = NULL) throw()
- : error(_reason, _ctxt) {}
- virtual ~value_error() throw() {}
-};
+DECLARE_EXCEPTION(value_exception);
} // namespace ledger