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 
28 
29  public:
30 
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 
45  };
46 
47 }
48 
49 #endif
50 /** @} */ // end of doxygen group
51 
void msg(const char *fmt,...)
Definition: message.cpp:107
std::string string
Definition: nybbler.cc:12
STL namespace.
virtual const char * what() const
GeoAlgoException(std::string msg="")
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33