aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/AIException.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/AIException.h')
-rw-r--r--src/server/game/AI/AIException.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/server/game/AI/AIException.h b/src/server/game/AI/AIException.h
index 0f39bd78915..c2245174855 100644
--- a/src/server/game/AI/AIException.h
+++ b/src/server/game/AI/AIException.h
@@ -19,17 +19,12 @@
#define TRINITY_AIEXCEPTION_H
#include "Define.h"
-#include <exception>
-#include <string>
+#include <stdexcept>
-class TC_GAME_API InvalidAIException : public std::exception
+class TC_GAME_API InvalidAIException : public std::logic_error
{
public:
- InvalidAIException(char const* msg) : msg_(msg) {}
- char const* what() const noexcept override { return msg_.c_str(); }
-
-private:
- std::string const msg_;
+ using std::logic_error::logic_error;
};
#endif