From 3b390967e7c2ee4ac6d1a67c77f40ed43005e012 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 20 Nov 2016 11:27:07 +0100 Subject: Initial --- error.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 error.h (limited to 'error.h') diff --git a/error.h b/error.h new file mode 100644 index 0000000..02aafec --- /dev/null +++ b/error.h @@ -0,0 +1,19 @@ +#pragma once + +#include +#include + +using namespace std; + + +class NameError : public runtime_error{ +public: + NameError(const string &what_arg); + NameError(const char *what_arg); +}; + +class TypeError : public runtime_error{ +public: + TypeError(const string &what_arg); + TypeError(const char *what_arg); +}; -- cgit v1.2.3-70-g09d2