/* * This source code is released into the public domain. */ #ifndef LFJAIL_GENERIC_ERROR_HH #define LFJAIL_GENERIC_ERROR_HH #include #include namespace lfjail { struct generic_error : std::runtime_error { template generic_error(std::format_string fmt, Args &&...args) : std::runtime_error(std::format(fmt, std::forward(args)...)) {} }; } // namespace lfjail #endif // !LFJAIL_GENERIC_ERROR_HH