12 class base_exception
: public std::exception
{
16 auto setMessage(const char *msg
, std::va_list args
) -> void;
19 base_exception() = default;
20 base_exception(const base_exception
&) = default;
21 base_exception(base_exception
&&) = default;
22 ~base_exception() override
;
24 auto operator=(const base_exception
&) -> base_exception
& = default;
25 auto operator=(base_exception
&&) -> base_exception
& = default;
27 [[nodiscard
]] auto what() const noexcept
-> const char* override
{ return mMessage
.c_str(); }
32 #endif /* CORE_EXCEPT_H */