Files
BloomPatched/src/DebugServer/Gdb/Exceptions/ClientNotSupported.hpp

27 lines
796 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions
2021-04-04 21:04:12 +01:00
{
/**
* 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 Bloom::Exceptions::Exception
2021-04-04 21:04:12 +01:00
{
public:
explicit ClientNotSupported(const std::string& message): Bloom::Exceptions::Exception(message) {
2021-04-04 21:04:12 +01:00
this->message = message;
}
explicit ClientNotSupported(const char* message): Bloom::Exceptions::Exception(message) {
2021-04-04 21:04:12 +01:00
this->message = std::string(message);
}
explicit ClientNotSupported() = default;
};
}