00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SEMAINE_CMS_EXCEPTIONS_SEMAINEEXCEPTION_H
00011 #define SEMAINE_CMS_EXCEPTIONS_SEMAINEEXCEPTION_H
00012
00013 #include <semaine/config.h>
00014
00015 namespace semaine {
00016 namespace cms {
00017 namespace exceptions {
00018
00019
00020 class SEMAINEException : public std::exception
00021 {
00022 public:
00023 inline SEMAINEException(const std::string & text) throw()
00024 {
00025 message = text;
00026 }
00027
00028 inline ~SEMAINEException() throw() {}
00029 const char * what() const throw() { return message.c_str(); }
00030
00031 protected:
00032 std::string message;
00033
00034 };
00035
00036
00037 }
00038 }
00039 }
00040
00041
00042
00043 #endif
00044