summaryrefslogtreecommitdiff
path: root/src/preview/PreviewModelException.h
blob: 261d203e0b854f0eedc1c3848d18be3ca62380a3 (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
/*
 * PreviewModelException.h
 *
 *  Created on: Apr 14, 2012
 *      Author: Simon
 */

#ifndef PREVIEWMODELEXCEPTION_H_
#define PREVIEWMODELEXCEPTION_H_

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

struct PreviewModelException: public exception {
	string message;
public:
	PreviewModelException(string message_): message(message_) {}
	const char * what() const throw()
	{
		return message.c_str();
	}
	~PreviewModelException() throw() {};
};

#endif /* PREVIEWMODELEXCEPTION_H_ */