diff options
Diffstat (limited to 'project2/exceptions.h')
-rw-r--r-- | project2/exceptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/project2/exceptions.h b/project2/exceptions.h index b6c64ae..23faafc 100644 --- a/project2/exceptions.h +++ b/project2/exceptions.h @@ -17,6 +17,11 @@ class Name : public std::runtime_error { \ public: \ Name(const std::string & what) : std::runtime_error(what) { } \ } +#define SimpleMessageExceptionBase(Name, Base) \ +class Name : public Base { \ + public: \ + Name(const std::string & what) : Base(what) { } \ +} #define SimpleNumericException(Name) \ class Name : public numeric_error { \ public: \ |