diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 20:01:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 20:01:27 +0100 |
commit | 9283e1eb66d6ff96b02f317e28cb6ff060953cdf (patch) | |
tree | c03d853ef620216f1c2299936004f56c6c3cee04 /frontend/Exception.h | |
parent | 7285f9f2c2622acff734e31314f92df9b25cae16 (diff) |
WIP load XML
Diffstat (limited to 'frontend/Exception.h')
-rw-r--r-- | frontend/Exception.h | 17 |
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; +}; + |