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

27 lines
711 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
#include "src/Exceptions/Exception.hpp"
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.
*/
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)
: ::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)
: ::Exceptions::Exception(message)
2022-12-10 19:23:06 +00:00
{}
2021-04-04 21:04:12 +01:00
explicit ClientNotSupported() = default;
};
}