blob: c95f7e60abc4bef0ae9ed643076e3db64ec34a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef GAMEMODELEXCEPTION_H_
#define GAMEMODELEXCEPTION_H_
#include <string>
#include <exception>
using namespace std;
struct GameModelException: public exception {
string message;
public:
GameModelException(string message_): message(message_) {}
const char * what() const throw()
{
return message.c_str();
}
~GameModelException() throw() {};
};
#endif /* GAMEMODELEXCEPTION_H_ */
|