#pragma once #include #include namespace breeze { /// Every failure the CLI reports to the user: a message and the process exit code to end with. class Error : public std::runtime_error { public: explicit Error(const std::string& message, int exitCode = 1) : std::runtime_error(message), m_exitCode(exitCode) { } [[nodiscard]] int exitCode() const noexcept { return m_exitCode; } private: int m_exitCode; }; }