summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'error.h')
-rw-r--r--error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/error.h b/error.h
index 23386823..51d152cd 100644
--- a/error.h
+++ b/error.h
@@ -32,6 +32,13 @@ class expr_error : public error
virtual ~expr_error() throw() {}
};
+class format_error : public error
+{
+ public:
+ format_error(const std::string& reason) throw() : error(reason) {}
+ virtual ~format_error() throw() {}
+};
+
class parse_error : public error
{
unsigned int line;