aboutsummaryrefslogtreecommitdiff
path: root/frontend/Exception.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-29 20:01:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-29 20:01:27 +0100
commit9283e1eb66d6ff96b02f317e28cb6ff060953cdf (patch)
treec03d853ef620216f1c2299936004f56c6c3cee04 /frontend/Exception.h
parent7285f9f2c2622acff734e31314f92df9b25cae16 (diff)
WIP load XML
Diffstat (limited to 'frontend/Exception.h')
-rw-r--r--frontend/Exception.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/Exception.h b/frontend/Exception.h
new file mode 100644
index 0000000..633cb4f
--- /dev/null
+++ b/frontend/Exception.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <cstdarg>
+#include <exception>
+#include <memory>
+
+class Exception : public std::exception {
+public:
+ Exception(const char * fmt, ...);
+ const char * what();
+
+protected:
+ Exception() = default;
+ void va_format(va_list args, const char * fmt);
+ std::unique_ptr<char> error = NULL;
+};
+