14 class base_exception
: public std::exception
{
19 base_exception(ALCenum code
) : mErrorCode
{code
} { }
20 virtual ~base_exception();
22 void setMessage(const char *msg
, std::va_list args
);
25 const char *what() const noexcept override
{ return mMessage
.c_str(); }
26 ALCenum
errorCode() const noexcept
{ return mErrorCode
; }
31 #define START_API_FUNC try
33 #define END_API_FUNC catch(...) { std::terminate(); }
35 #endif /* ALEXCPT_H */