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 #include "DebuggableError.hpp"
11 
12 namespace ComSquare
13 {
16  private:
17  std::string _msg;
18  public:
19  explicit InvalidRomException(const std::string &msg) : _msg(msg) {}
20  const char *what() const noexcept override { return this->_msg.c_str(); }
21  };
22 }
23 
24 #endif //COMSQUARE_INVALIDROM_HPP
ComSquare::InvalidRomException::what
const char * what() const noexcept override
Definition: InvalidRom.hpp:20
ComSquare::InvalidRomException::InvalidRomException
InvalidRomException(const std::string &msg)
Definition: InvalidRom.hpp:19
DebuggableError.hpp
ComSquare::InvalidRomException
Exception thrown when someone tries to load an invalid rom.
Definition: InvalidRom.hpp:15
ComSquare::InvalidRomException::_msg
std::string _msg
Definition: InvalidRom.hpp:17
ComSquare::DebuggableError
Definition: DebuggableError.hpp:11
ComSquare
Definition: APU.cpp:12