From 7d2e21334c5bc6423abed3b450d369829d7c1fde Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 17 Dec 2020 16:46:21 -0800 Subject: Move the AL error enum out of base_exception --- al/filter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'al/filter.cpp') diff --git a/al/filter.cpp b/al/filter.cpp index 447bea7a..2f49c52e 100644 --- a/al/filter.cpp +++ b/al/filter.cpp @@ -48,15 +48,18 @@ namespace { class filter_exception final : public al::base_exception { + ALenum mErrorCode; + public: [[gnu::format(printf, 3, 4)]] - filter_exception(ALenum code, const char *msg, ...) : base_exception{code} + filter_exception(ALenum code, const char *msg, ...) : mErrorCode{code} { std::va_list args; va_start(args, msg); setMessage(msg, args); va_end(args); } + ALenum errorCode() const noexcept { return mErrorCode; } }; #define FILTER_MIN_GAIN 0.0f -- cgit v1.2.3