#pragma once #include #include #include namespace crepe { //! Exception class class Exception : public std::exception { public: //! Exception with plain message Exception(const std::string & msg); //! Exception with \c std::format message template Exception(std::format_string fmt, Args &&... args); //! Get formatted error message const char * what() const noexcept; protected: Exception() = default; //! Formatted error message std::string error; }; } // namespace crepe #include "Exception.hpp"