Go to the documentation of this file.
25 std::stringstream stream;
26 stream <<
"Could not read/write data at address: " << addr <<
" from " << where;
27 this->_msg = stream.str();
29 const char *
what() const noexcept
override {
return this->_msg.c_str(); }
41 std::stringstream stream;
42 stream <<
"Could not read/write data at address: 0x" << std::hex << addr <<
" from " << where;
44 stream <<
" (" << std::hex << subaddr <<
" < " << start <<
")";
46 stream <<
" (" << std::hex << subaddr <<
" > " << end <<
")";
47 this->_msg = stream.str();
49 const char *
what() const noexcept
override {
return this->_msg.c_str(); }
const char * what() const noexcept override
Definition: InvalidAddress.hpp:29
InvalidRectangleAddress(std::string where, int32_t addr, int16_t subaddr, int16_t start, int16_t end)
Definition: InvalidAddress.hpp:39
unsigned uint24_t
Definition: Ints.hpp:10
std::string _msg
Definition: InvalidAddress.hpp:20
Exception thrown when trying to read/write to an invalid address in a rectangle memory region.
Definition: InvalidAddress.hpp:33
const char * what() const noexcept override
Definition: InvalidAddress.hpp:49
Definition: DebuggableError.hpp:11
InvalidAddress(std::string where, uint24_t addr)
Definition: InvalidAddress.hpp:23
Exception thrown when trying to read/write to an invalid address.
Definition: InvalidAddress.hpp:17
std::string _msg
Definition: InvalidAddress.hpp:36