LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MCBaseException.h
Go to the documentation of this file.
1 
14 #ifndef MCBASEEXCEPTION_H
15 #define MCBASEEXCEPTION_H
16 
17 #include <exception>
18 #include <string>
19 
20 namespace sim {
26 
27  public:
28  MCBaseException(std::string msg = "") : std::exception(), _msg(msg) {}
29 
30  virtual ~MCBaseException() throw() {}
31  virtual const char* what() const throw() { return _msg.c_str(); }
32 
33  private:
34  std::string _msg;
35  };
36 
37 }
38 #endif
39  // end of doxygen group
virtual const char * what() const
STL namespace.
Monte Carlo Simulation.
MCBaseException(std::string msg="")
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33