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