All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoAlgoException.h
Go to the documentation of this file.
1 /**
2  * \file GeoAlgoException.h
3  *
4  * \ingroup GeoAlgo
5  *
6  * \brief Class def header for a class GeoAlgoException
7  *
8  * @author kazu
9  */
10 
11 /** \addtogroup GeoAlgo
12 
13  @{*/
14 #ifndef BASICTOOL_GEOALGOEXCEPTION_H
15 #define BASICTOOL_GEOALGOEXCEPTION_H
16 
17 #include <iostream>
18 #include <exception>
19 
20 namespace geoalgo {
21 /**
22  \class GeoAlgoException
23  User defined class GeoAlgoException ... these comments are used to generate
24  doxygen documentation!
25  */
26 
27  class GeoAlgoException : public std::exception{
28 
29  public:
30 
31  GeoAlgoException(std::string msg="") : std::exception()
32  {
33  _msg = "\n\033[93m<<EXCEPTION>>\033[00m\033[95m ";
34  _msg += msg;
35  _msg += "\033[00m\n";
36  }
37 
38  virtual ~GeoAlgoException() throw(){};
39  virtual const char* what() const throw()
40  {return _msg.c_str(); }
41 
42  private:
43 
44  std::string _msg;
45  };
46 
47 }
48 
49 #endif
50 /** @} */ // end of doxygen group
51 
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42