aboutsummaryrefslogtreecommitdiff
path: root/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'Exception.h')
-rw-r--r--Exception.h16
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; };