From 5087a60deef7c618a07562511e9a1fbf2414776c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Jul 2004 20:06:56 -0400 Subject: added error checking to value expression parsing --- error.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'error.h') 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; -- cgit v1.2.3