00001 #ifndef SimG4Core_SimG4Exception_H 00002 #define SimG4Core_SimG4Exception_H 00003 00004 #include <exception> 00005 #include <string> 00006 00013 class SimG4Exception : public std::exception 00014 { 00015 public: 00016 SimG4Exception(const std::string & message) : error_(message) {} 00017 virtual ~SimG4Exception() throw() {} 00018 virtual const char * what () const throw() { return error_.c_str(); } 00019 private: 00020 std::string error_; 00021 }; 00022 00023 #endif