diff options
Diffstat (limited to 'common/alexcpt.h')
-rw-r--r-- | common/alexcpt.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/alexcpt.h b/common/alexcpt.h index 5b33f092..e31c50e7 100644 --- a/common/alexcpt.h +++ b/common/alexcpt.h @@ -6,24 +6,20 @@ #include <string> #include <utility> -#include "AL/alc.h" - namespace al { class base_exception : public std::exception { std::string mMessage; - ALCenum mErrorCode; protected: - base_exception(ALCenum code) : mErrorCode{code} { } + base_exception() = default; virtual ~base_exception(); void setMessage(const char *msg, std::va_list args); public: const char *what() const noexcept override { return mMessage.c_str(); } - ALCenum errorCode() const noexcept { return mErrorCode; } }; } // namespace al |