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