ComSquare
InvalidRom.hpp
Go to the documentation of this file.
1 //
2 // Created by anonymus-raccoon on 1/28/20.
3 //
4 
5 #ifndef COMSQUARE_INVALIDROM_HPP
6 #define COMSQUARE_INVALIDROM_HPP
7 
8 #include <exception>
9 #include <string>
10 
11 namespace ComSquare
12 {
14  class InvalidRomException : std::exception {
15  private:
16  std::string _msg;
17  public:
18  explicit InvalidRomException(const std::string &msg) : _msg(msg) {}
19  const char *what() const noexcept override { return this->_msg.c_str(); }
20  };
21 }
22 
23 #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