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