New monitor eeprom fill GDB command

This commit is contained in:
Nav
2022-12-10 19:22:53 +00:00
parent 8f48a30fa3
commit ffe4f5bfc5
5 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include "src/Exceptions/Exception.hpp"
namespace Bloom::DebugServer::Gdb::Exceptions
{
/**
* For GDB monitor commands, each command can define a set of required/optional command options.
* This exception is thrown if an invalid option is given.
*
* This exception is typically thrown and caught within the handling of monitor commands.
*/
class InvalidCommandOption: public Bloom::Exceptions::Exception
{
public:
explicit InvalidCommandOption(const std::string& message)
: Bloom::Exceptions::Exception(message)
{}
explicit InvalidCommandOption(const char* message)
: Bloom::Exceptions::Exception(message)
{}
explicit InvalidCommandOption() = default;
};
}