diff options
Diffstat (limited to 'src/stamps/StampsModelException.h')
| -rw-r--r-- | src/stamps/StampsModelException.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/stamps/StampsModelException.h b/src/stamps/StampsModelException.h new file mode 100644 index 0000000..7310aa0 --- /dev/null +++ b/src/stamps/StampsModelException.h @@ -0,0 +1,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_ */ |
