Exception raised when one of the instructions has not a valid format.
More...
#include <invalidinstruction_exception.hpp>
|
| InvalidInstructionException (const std::string &msg, std::uint32_t inst_size) |
| Constructor of exception.
|
|
virtual const char * | what () const noexcept override |
| Return error message.
|
|
std::uint32_t | size () const |
| Get the value of.
|
|
Exception raised when one of the instructions has not a valid format.
◆ InvalidInstructionException()
exceptions::InvalidInstructionException::InvalidInstructionException |
( |
const std::string & |
msg, |
|
|
std::uint32_t |
inst_size |
|
) |
| |
|
inline |
Constructor of exception.
- Parameters
-
msg | message to show to the user |
inst_Size | size of the instruction to skip that size |
◆ size()
std::uint32_t exceptions::InvalidInstructionException::size |
( |
| ) |
const |
|
inline |
Get the value of.
- Returns
◆ what()
virtual const char * exceptions::InvalidInstructionException::what |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Return error message.
- Returns
- error message in a c string style
The documentation for this class was generated from the following file: