CMS 3D CMS Logo

SimG4Exception.h
Go to the documentation of this file.
1 #ifndef SimG4Core_SimG4Exception_H
2 #define SimG4Core_SimG4Exception_H
3 
4 #include <exception>
5 #include <string>
6 
14 {
15 public:
16  SimG4Exception(const std::string & message) : error_(message) {}
17  virtual ~SimG4Exception() throw() {}
18  virtual const char * what () const throw() { return error_.c_str(); }
19 private:
21 };
22 
23 #endif
virtual ~SimG4Exception()
SimG4Exception(const std::string &message)
virtual const char * what() const
std::string error_