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