mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-27 08:11:55 +00:00
Starting to parse the Rom's header
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 1/30/20.
|
||||
//
|
||||
|
||||
#ifndef COMSQUARE_INVALIDACCTION_HPP
|
||||
#define COMSQUARE_INVALIDACCTION_HPP
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
//! @brief Exception thrown when someone tries to load an invalid rom.
|
||||
class InvalidAcction : std::exception {
|
||||
private:
|
||||
std::string _msg;
|
||||
public:
|
||||
explicit InvalidAcction(const std::string &msg) : _msg(msg) {}
|
||||
const char *what() const noexcept override { return this->_msg.c_str(); }
|
||||
};
|
||||
}
|
||||
#endif //COMSQUARE_INVALIDACCTION_HPP
|
||||
Reference in New Issue
Block a user