2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/Exceptions/Exception.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace 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.
|
|
|
|
|
*/
|
2023-08-13 15:47:51 +01:00
|
|
|
class ClientNotSupported: public ::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)
|
2023-08-13 15:47:51 +01:00
|
|
|
: ::Exceptions::Exception(message)
|
2022-12-10 19:23:06 +00:00
|
|
|
{}
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-12-10 19:23:06 +00:00
|
|
|
explicit ClientNotSupported(const char* message)
|
2023-08-13 15:47:51 +01:00
|
|
|
: ::Exceptions::Exception(message)
|
2022-12-10 19:23:06 +00:00
|
|
|
{}
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
explicit ClientNotSupported() = default;
|
|
|
|
|
};
|
|
|
|
|
}
|