2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/Exceptions/Exception.hpp"
|
|
|
|
|
|
2022-03-31 16:05:39 +01:00
|
|
|
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.
|
|
|
|
|
*/
|
2021-05-24 20:58:49 +01:00
|
|
|
class ClientNotSupported: public Bloom::Exceptions::Exception
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2022-12-10 19:23:06 +00:00
|
|
|
explicit ClientNotSupported(const std::string& message)
|
|
|
|
|
: Bloom::Exceptions::Exception(message)
|
|
|
|
|
{}
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-12-10 19:23:06 +00:00
|
|
|
explicit ClientNotSupported(const char* message)
|
|
|
|
|
: Bloom::Exceptions::Exception(message)
|
|
|
|
|
{}
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
explicit ClientNotSupported() = default;
|
|
|
|
|
};
|
|
|
|
|
}
|