LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 <exception>
18 #include <iostream>
19 
20 namespace geoalgo {
28 
29  public:
30  GeoAlgoException(std::string msg = "") : std::exception()
31  {
32  _msg = "\n\033[93m<<EXCEPTION>>\033[00m\033[95m ";
33  _msg += msg;
34  _msg += "\033[00m\n";
35  }
36 
37  virtual ~GeoAlgoException() throw(){};
38  virtual const char* what() const throw() { return _msg.c_str(); }
39 
40  private:
41  std::string _msg;
42  };
43 
44 }
45 
46 #endif
47  // end of doxygen group
STL namespace.
virtual const char * what() const
GeoAlgoException(std::string msg="")
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33