MCBaseException.h
Go to the documentation of this file.
1 /**
2  * \file MCBaseException.h
3  *
4  * \ingroup MCBase
5  *
6  * \brief Class def header for exception classes for MC data products
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup MCBase
12 
13  @{*/
14 #ifndef MCBASEEXCEPTION_H
15 #define MCBASEEXCEPTION_H
16 
17 #include <string>
18 #include <exception>
19 
20 namespace sim {
21  /**
22  \class MCBaseException
23  Simple exception class for MCBase package
24  */
26 
27  public:
28 
30  {}
31 
32  virtual ~MCBaseException() throw(){}
33  virtual const char* what() const throw()
34  {return _msg.c_str(); }
35 
36  private:
37 
39  };
40 
41 }
42 #endif
43 /** @} */ // end of doxygen group
44 
void msg(const char *fmt,...)
Definition: message.cpp:107
virtual const char * what() const
std::string string
Definition: nybbler.cc:12
STL namespace.
Code to link reconstructed objects back to the MC truth information.
MCBaseException(std::string msg="")
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33