InvalidAction.hpp
Go to the documentation of this file.
//
// Created by anonymus-raccoon on 1/30/20.
//
#ifndef COMSQUARE_INVALIDACTION_HPP
#define COMSQUARE_INVALIDACTION_HPP
#include <exception>
#include <string>
namespace ComSquare
{
class InvalidAction : std::exception {
private:
std::string _msg;
public:
explicit InvalidAction(const std::string &msg) : _msg(msg) {}
const char *what() const noexcept override { return this->_msg.c_str(); }
};
}
#endif //COMSQUARE_INVALIDACTION_HPP
ComSquare::InvalidAction::_msg
std::string _msg
Definition: InvalidAction.hpp:16
ComSquare::InvalidAction::InvalidAction
InvalidAction(const std::string &msg)
Definition: InvalidAction.hpp:18
ComSquare::InvalidAction::what
const char * what() const noexcept override
Definition: InvalidAction.hpp:19
ComSquare::InvalidAction
Exception thrown when someone tries to load an invalid rom.
Definition: InvalidAction.hpp:14
ComSquare
Definition: APU.cpp:9