aboutsummaryrefslogtreecommitdiff
path: root/backend/Exception.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 17:38:33 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 17:38:33 +0100
commit5376efe7e63ef3c848a971ea845a16c7e030d153 (patch)
tree14681fae031222cd2b4bfc6686ae5b8e876f7fc0 /backend/Exception.h
parentb20f46c15dce8b196dbb8890890978947745e094 (diff)
move Exception to backend
Diffstat (limited to 'backend/Exception.h')
-rw-r--r--backend/Exception.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/Exception.h b/backend/Exception.h
new file mode 100644
index 0000000..bc65aa0
--- /dev/null
+++ b/backend/Exception.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "backend/String.h"
+
+class Exception {
+public:
+ Exception(const char * fmt, ...);
+ const char * what();
+
+protected:
+ Exception() = default;
+ String error;
+};
+