File indexing completed on 2024-04-06 12:30:26
0001 #ifndef SimG4Core_SimG4Exception_H
0002 #define SimG4Core_SimG4Exception_H
0003
0004 #include <exception>
0005 #include <string>
0006
0007
0008
0009
0010
0011
0012
0013 class SimG4Exception : public std::exception {
0014 public:
0015 SimG4Exception(const std::string& message) : error_(message) {}
0016 ~SimG4Exception() throw() override {}
0017 const char* what() const throw() override { return error_.c_str(); }
0018
0019 private:
0020 std::string error_;
0021 };
0022
0023 #endif