New monitor eeprom fill GDB command
This commit is contained in:
26
src/DebugServer/Gdb/Exceptions/InvalidCommandOption.hpp
Normal file
26
src/DebugServer/Gdb/Exceptions/InvalidCommandOption.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user