summaryrefslogtreecommitdiff
path: root/src/stamps/StampsModelException.h
blob: 7310aa0f41c26cff0e53063f896e3c4ff44ff950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * StampsModelException.h
 *
 *  Created on: Mar 29, 2012
 *      Author: Simon
 */

#ifndef STAMPSMODELEXCEPTION_H_
#define STAMPSMODELEXCEPTION_H_

#include <string>
#include <exception>
using namespace std;

class StampsModelException {
	string message;
public:
	StampsModelException(string message_): message(message_) {};
	const char * what() const throw() { return message.c_str(); };
	~StampsModelException() throw() {};
};

#endif /* STAMPSMODELEXCEPTION_H_ */