diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-14 18:00:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-14 18:00:24 (GMT) |
| commit | 4c6be4ff2cc822d9c1ed36c9c88261771775dc02 (patch) | |
| tree | 9e07f4871b68ea5e0edc7fdfc56894c26bfba9bf /src/preview/PreviewModelException.h | |
| parent | 64063fbc0f070a0731c896394e30abebd848f358 (diff) | |
| download | powder-4c6be4ff2cc822d9c1ed36c9c88261771775dc02.zip powder-4c6be4ff2cc822d9c1ed36c9c88261771775dc02.tar.gz | |
Graphics:: Extra icons for Report and Favourite. Client:: Get favourite status in GetSave, FavouriteSave, ReportSave, Preview:: Failure state when loading save
Diffstat (limited to 'src/preview/PreviewModelException.h')
| -rw-r--r-- | src/preview/PreviewModelException.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/preview/PreviewModelException.h b/src/preview/PreviewModelException.h new file mode 100644 index 0000000..261d203 --- /dev/null +++ b/src/preview/PreviewModelException.h @@ -0,0 +1,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_ */ |
