X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fsrc1%2Fbrukerexception.h;h=27a107a2a5130e0e32c5a3177e59fffa5e0a95d6;hb=5a38892e9f13150c99d0af186aa8c0741146f9e4;hp=94f8375e8677e24d30318ee8c6c5614933836de6;hpb=47f6f95499caee9a0807c1c6ed7514979bb9ca65;p=creaBruker.git diff --git a/lib/src1/brukerexception.h b/lib/src1/brukerexception.h index 94f8375..27a107a 100644 --- a/lib/src1/brukerexception.h +++ b/lib/src1/brukerexception.h @@ -38,4 +38,45 @@ private: }; + +class creaBruker_EXPORT BrukerInitException: public std::exception +{ +public: + BrukerInitException( const std::string& message + ) + : m_message(message) + {} + + ~BrukerInitException() throw() {} + + virtual const char* what() const throw() { + return m_message.c_str(); + } + + +private: + std::string m_message; + +}; + +class creaBruker_EXPORT BrukerHopelessException: public std::exception +{ +public: + BrukerHopelessException( const std::string& message + ) + : m_message(message) + {} + + ~BrukerHopelessException() throw() {} + + virtual const char* what() const throw() { + return m_message.c_str(); + } + + +private: + std::string m_message; + +}; + #endif