summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-07-30 20:06:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-07-30 20:06:56 -0400
commit5087a60deef7c618a07562511e9a1fbf2414776c (patch)
treea8f8ef2b2f9f6352db1ec0b7cc5e17c13918bcec /error.h
parentabae9138e9b7746a23d66d56673e10343a9cec11 (diff)
downloadledger-5087a60deef7c618a07562511e9a1fbf2414776c.tar.gz
ledger-5087a60deef7c618a07562511e9a1fbf2414776c.tar.bz2
ledger-5087a60deef7c618a07562511e9a1fbf2414776c.zip
added error checking to value expression parsing
Diffstat (limited to 'error.h')
-rw-r--r--error.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/error.h b/error.h
index f332ae4c..23386823 100644
--- a/error.h
+++ b/error.h
@@ -18,6 +18,20 @@ class error : public std::exception
}
};
+class compute_error : public error
+{
+ public:
+ compute_error(const std::string& reason) throw() : error(reason) {}
+ virtual ~compute_error() throw() {}
+};
+
+class expr_error : public error
+{
+ public:
+ expr_error(const std::string& reason) throw() : error(reason) {}
+ virtual ~expr_error() throw() {}
+};
+
class parse_error : public error
{
unsigned int line;