summaryrefslogtreecommitdiff
path: root/src/include/compile_error.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/compile_error.hpp')
-rw-r--r--src/include/compile_error.hpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/include/compile_error.hpp b/src/include/compile_error.hpp
new file mode 100644
index 00000000..f88cbe58
--- /dev/null
+++ b/src/include/compile_error.hpp
@@ -0,0 +1,51 @@
+/*
+ */
+#ifndef _COMPILE_ERROR_H_
+#define _COMPILE_ERROR_H_
+
+class TokenStream;
+
+namespace CompileError {
+
+class Base:
+ public ::std::exception
+{
+public:
+ virtual ~Base() throw();
+};
+
+class Generic:
+ public Base
+{
+ ::std::string m_message;
+public:
+ Generic(::std::string message);
+ Generic(const TokenStream& lex, ::std::string message);
+ virtual ~Generic() throw () {}
+};
+
+class BugCheck:
+ public Base
+{
+ ::std::string m_message;
+public:
+ BugCheck(::std::string message);
+ BugCheck(const TokenStream& lex, ::std::string message);
+ virtual ~BugCheck() throw () {}
+};
+
+class Todo:
+ public Base
+{
+ ::std::string m_message;
+public:
+ Todo(::std::string message);
+ Todo(const TokenStream& lex, ::std::string message);
+ virtual ~Todo() throw ();
+
+};
+
+}
+
+#endif
+