blob: 05138f27d5121028fe9cb15c6fbbbe071671b94d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* SaveLoadException.h
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef SAVELOADEXCEPTION_H_
#define SAVELOADEXCEPTION_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 /* SAVELOADEXCEPTION_H_ */
|