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

29 lines
782 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:
explicit ClientNotSupported(const std::string& message) : Exception(message) {
this->message = message;
}
explicit ClientNotSupported(const char* message) : Exception(message) {
this->message = std::string(message);
}
explicit ClientNotSupported() = default;
};
}