Fork for kernel 5.18 API change.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
360 B

4 years ago
#ifndef SONO_EXCEPTION_H
#define SONO_EXCEPTION_H
#include <exception>
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