All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  */
25  class MCBaseException : public std::exception{
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 
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
virtual const char * what() const
MCBaseException(std::string msg="")