12 class base_exception
: public std::exception
{
16 base_exception() = default;
17 virtual ~base_exception() = default;
19 void setMessage(const char *msg
, std::va_list args
);
22 const char *what() const noexcept override
{ return mMessage
.c_str(); }
27 #define START_API_FUNC try
29 #define END_API_FUNC catch(...) { std::terminate(); }
31 #endif /* CORE_EXCEPT_H */