Initial commit
This commit is contained in:
18
src/Exceptions/DeviceCommunicationFailure.hpp
Normal file
18
src/Exceptions/DeviceCommunicationFailure.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "Exception.hpp"
|
||||
|
||||
namespace Bloom::Exceptions
|
||||
{
|
||||
class DeviceCommunicationFailure: public Exception
|
||||
{
|
||||
public:
|
||||
explicit DeviceCommunicationFailure(const std::string& message) : Exception(message) {
|
||||
this->message = message;
|
||||
}
|
||||
|
||||
explicit DeviceCommunicationFailure(const char* message) : Exception(message) {
|
||||
this->message = std::string(message);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user