#ifndef SONO_EXCEPTION_H #define SONO_EXCEPTION_H #include class SonoException : public std::exception { private: std::string _message; public: explicit SonoException(const std::string& message) { _message = message; } const char* what() const noexcept override { return _message.c_str(); } }; #endif