forked from Sepanta/pcie-driver
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
22 lines
360 B
#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
|