diff options
Diffstat (limited to 'Client/Source/Utilities/Exception.h')
-rw-r--r-- | Client/Source/Utilities/Exception.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Client/Source/Utilities/Exception.h b/Client/Source/Utilities/Exception.h new file mode 100644 index 0000000..3795bc6 --- /dev/null +++ b/Client/Source/Utilities/Exception.h @@ -0,0 +1,12 @@ +#pragma once +#include <exception> + +#define CustomException(Name) \ +class Name : public std::exception \ +{ \ +public: \ + Name(const char* what) \ + : std::exception(what) \ + { \ + } \ +} |