Starting to parse the Rom's header

This commit is contained in:
AnonymusRaccoon
2020-01-30 17:36:14 +01:00
parent a366d29638
commit 0bb1965073
4 changed files with 61 additions and 11 deletions
+22
View File
@@ -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