2021-08-15 01:47:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/Exceptions/Exception.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace Exceptions
|
2021-08-15 01:47:48 +01:00
|
|
|
{
|
|
|
|
|
class DeviceFailure: public Exception
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit DeviceFailure(const std::string& message): Exception(message) {
|
|
|
|
|
this->message = message;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
explicit DeviceFailure(const char* message): Exception(message) {
|
|
|
|
|
this->message = std::string(message);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|