14 #ifndef GK_EXCEPTION_HPP_ 15 #define GK_EXCEPTION_HPP_ 22 #define EXCEPTION(args...) (gk::Exception(__LINE__, _FILE, args)) 28 template<
typename... Args>
31 m_errorMsg +=
"at " + filename +
":" + std::to_string(line) +
": ";
36 virtual const char *
what() const noexcept {
46 #endif // GK_EXCEPTION_HPP_
std::string makeString(Args &&...args)
Exception(u16 line, std::string filename, Args... args) noexcept
std::string textColor(u8 color=TextColor::White, bool bold=false)
virtual const char * what() const noexcept