LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
GeoAlgoException.h
Go to the documentation of this file.
1 
14 #ifndef BASICTOOL_GEOALGOEXCEPTION_H
15 #define BASICTOOL_GEOALGOEXCEPTION_H
16 
17 #include <iostream>
18 #include <exception>
19 
20 namespace geoalgo {
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 
STL namespace.
virtual const char * what() const
GeoAlgoException(std::string msg="")
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33