diff options
author | Chris Robinson <[email protected]> | 2020-12-17 16:46:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-17 16:46:21 -0800 |
commit | 7d2e21334c5bc6423abed3b450d369829d7c1fde (patch) | |
tree | 957916bbcb6131be5b35620a9d3b9412f471e8ce /alc/backends | |
parent | 4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 (diff) |
Move the AL error enum out of base_exception
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h index 99e2f12b..3a96c446 100644 --- a/alc/backends/base.h +++ b/alc/backends/base.h @@ -94,15 +94,18 @@ protected: namespace al { class backend_exception final : public base_exception { + ALCenum mErrorCode; + public: [[gnu::format(printf, 3, 4)]] - backend_exception(ALCenum code, const char *msg, ...) : base_exception{code} + backend_exception(ALCenum code, const char *msg, ...) : mErrorCode{code} { std::va_list args; va_start(args, msg); setMessage(msg, args); va_end(args); } + ALCenum errorCode() const noexcept { return mErrorCode; } }; } // namespace al |