From 60cbbdec07ab7a5636eac5b3c024ae44e937f4d4 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 13 Dec 2021 00:07:19 +0800 Subject: +init --- Client/Source/Utilities/Exception.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Client/Source/Utilities/Exception.h (limited to 'Client/Source/Utilities/Exception.h') 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 + +#define CustomException(Name) \ +class Name : public std::exception \ +{ \ +public: \ + Name(const char* what) \ + : std::exception(what) \ + { \ + } \ +} -- cgit v1.1-26-g67d0