diff options
Diffstat (limited to 'Exception.h')
-rw-r--r-- | Exception.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Exception.h b/Exception.h index 8f4ba4f..ab9cfce 100644 --- a/Exception.h +++ b/Exception.h @@ -3,6 +3,8 @@ #include <cstdarg> #include <exception> +#include "Node.h" + class Exception : public std::exception { public: Exception(const char * fmt, ...); @@ -17,11 +19,20 @@ protected: class ParserException : public Exception { public: + using Exception::Exception; ParserException(const char * fmt, ...); }; class CircuitException : public Exception { public: + using Exception::Exception; CircuitException(const char * fmt, ...); + Node * node = nullptr; +}; + +class NodeException : public CircuitException { +public: + using CircuitException::CircuitException; + NodeException(Node * node, const char * fmt, ...); }; |