Go to the documentation of this file.
5 #ifndef COMSQUARE_INVALIDACTION_HPP
6 #define COMSQUARE_INVALIDACTION_HPP
27 std::stringstream stream;
28 stream <<
"The " + pu +
" got an invalid opcode: 0x" << std::hex << opcode;
29 this->_msg = stream.str();
31 const char *
what() const noexcept
override {
return this->_msg.c_str(); }
34 #endif //COMSQUARE_INVALIDACTION_HPP
Exception thrown when someone tries to load an invalid rom.
Definition: InvalidOpcode.hpp:16
InvalidOpcode(const std::string &pu, unsigned opcode)
Definition: InvalidOpcode.hpp:25
InvalidOpcode(const std::string &what)
Definition: InvalidOpcode.hpp:20
const char * what() const noexcept override
Definition: InvalidOpcode.hpp:31
std::string _msg
Definition: InvalidOpcode.hpp:18
Definition: DebuggableError.hpp:11