diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 14:01:17 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 14:01:17 +0200 |
commit | efa2f195a5f9c356318fb50532168fa2ee4c0979 (patch) | |
tree | f0e78786cd5b71ff0e389b7842f2a88f4b4f7358 /Exception.h | |
parent | 72c9b98b074d98d60983b178b06e1872eb96c242 (diff) | |
parent | a7eb10e81568b65c39d6e1d042309916a9180a2b (diff) |
Merge branch 'master' of github.com:lonkaars/depa
Diffstat (limited to 'Exception.h')
-rw-r--r-- | Exception.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Exception.h b/Exception.h new file mode 100644 index 0000000..818f3f0 --- /dev/null +++ b/Exception.h @@ -0,0 +1,16 @@ +#pragma once + +#include <exception> + +class Exception : public std::exception { +public: + Exception(const char * fmt, ...); + virtual ~Exception(); + virtual const char * what(); + +private: + char * error = NULL; +}; + +class ParserException : public Exception { using Exception::Exception; }; +class CircuitException : public Exception { using Exception::Exception; }; |