aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/error.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/lexer/error.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/lexer/error.hpp b/server/lexer/error.hpp
new file mode 100644
index 0000000..99944c7
--- /dev/null
+++ b/server/lexer/error.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "../common/error.hpp"
+
+#include <string>
+
+namespace math::server {
+
+class LexerError : public Error {
+public:
+ explicit LexerError(const std::string &what)
+ : Error{"lexer error: " + what}
+ { }
+};
+
+}