summaryrefslogtreecommitdiff
path: root/src/game/SaveLoadException.h
blob: fea2ad55d6132162d4200db6af773d2c2351c9c6 (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 SaveLoadException: public exception {
	string message;
public:
	SaveLoadException(string message_): message(message_) {}
	const char * what() const throw()
	{
		return message.c_str();
	}
	~SaveLoadException() throw() {};
};

#endif /* SAVELOADEXCEPTION_H_ */