diff options
author | John Wiegley <johnw@newartisans.com> | 2004-07-30 20:06:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-07-30 20:06:56 -0400 |
commit | 5087a60deef7c618a07562511e9a1fbf2414776c (patch) | |
tree | a8f8ef2b2f9f6352db1ec0b7cc5e17c13918bcec /error.h | |
parent | abae9138e9b7746a23d66d56673e10343a9cec11 (diff) | |
download | ledger-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.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; |