00001 #ifndef __EMCEXCEPTION_H__ 00002 #define __EMCEXCEPTION_H__ 00003 00004 #include <exception> 00005 #include <string> 00006 00009 class emcException : public std::exception 00010 { 00011 00012 public: 00013 emcException() : std::exception(), fContent("?") 00014 { } 00015 emcException(const char* content) : std::exception() 00016 { 00017 fContent = content ; 00018 } 00019 virtual ~emcException() throw() 00020 { } 00021 virtual const char* what() const throw(); 00022 00023 private: 00024 std::string fContent; 00025 } ; 00026 00027 #endif