LArOpenCV  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
larbys.h
Go to the documentation of this file.
1 
14 #ifndef __LARCAFFE_LARBYS_H__
15 #define __LARCAFFE_LARBYS_H__
16 
17 #include <iostream>
18 #include <exception>
19 
20 namespace larcaffe {
21 
26  class larbys : public std::exception {
27 
28  public:
29 
30  larbys(std::string msg="") : std::exception()
31  {
32  _msg = "\033[93m";
33  _msg += msg;
34  _msg += "\033[00m";
35  }
36 
37  virtual ~larbys() throw(){};
38  virtual const char* what() const throw()
39  { return _msg.c_str(); }
40 
41  private:
42 
43  std::string _msg;
44  };
45 }
46 
47 namespace larcv {
53 }
54 
55 #endif
56  // end of doxygen group
57