LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
MCBaseException.h
Go to the documentation of this file.
1 
14 #ifndef MCBASEEXCEPTION_H
15 #define MCBASEEXCEPTION_H
16 
17 #include <string>
18 #include <exception>
19 
20 namespace sim {
26 
27  public:
28 
29  MCBaseException(std::string msg="") : std::exception(), _msg(msg)
30  {}
31 
32  virtual ~MCBaseException() throw(){}
33  virtual const char* what() const throw()
34  {return _msg.c_str(); }
35 
36  private:
37 
38  std::string _msg;
39  };
40 
41 }
42 #endif
43  // end of doxygen group
44 
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