blob: 85dce1d1858d3c8fdee30b03e173eea6ae3d4918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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_ */
|