Files
BloomPatched/src/DebugServers/GdbRsp/Exceptions/ClientNotSupported.hpp

29 lines
780 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServers::Gdb::Exceptions
{
using namespace Bloom::Exceptions;
/**
* In the event that the GDB debug server determines that the connected client cannot be served,
* the ClientNotSupported exception should be thrown.
*
* See GdbRspDebugServer::serve() for handling code.
*/
class ClientNotSupported: public Exception
{
public:
2021-04-06 02:10:14 +01:00
explicit ClientNotSupported(const std::string& message): Exception(message) {
2021-04-04 21:04:12 +01:00
this->message = message;
}
2021-04-06 02:10:14 +01:00
explicit ClientNotSupported(const char* message): Exception(message) {
2021-04-04 21:04:12 +01:00
this->message = std::string(message);
}
explicit ClientNotSupported() = default;
};
}