aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index cd76368..b17f424 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -24,6 +24,13 @@ class divide_exception: public std::exception {
}
};
+class identifier_exception: public std::exception {
+ virtual const char* what() const throw()
+ {
+ return "Identifier could not be correctly resolved.";
+ }
+};
+
}
#endif // PARSER_SRC_EXCEPTIONS_H_