aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-17 16:46:21 -0800
committerChris Robinson <[email protected]>2020-12-17 16:46:21 -0800
commit7d2e21334c5bc6423abed3b450d369829d7c1fde (patch)
tree957916bbcb6131be5b35620a9d3b9412f471e8ce /al/effects
parent4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 (diff)
Move the AL error enum out of base_exception
Diffstat (limited to 'al/effects')
-rw-r--r--al/effects/effects.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/al/effects/effects.h b/al/effects/effects.h
index 1850271b..47b089ba 100644
--- a/al/effects/effects.h
+++ b/al/effects/effects.h
@@ -9,9 +9,13 @@ union EffectProps;
class effect_exception final : public al::base_exception {
+ ALenum mErrorCode;
+
public:
[[gnu::format(printf, 3, 4)]]
effect_exception(ALenum code, const char *msg, ...);
+
+ ALenum errorCode() const noexcept { return mErrorCode; }
};