LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
IOVDataError.h
Go to the documentation of this file.
1 
14 #ifndef IOVDATA_IOVDATAERROR_H
15 #define IOVDATA_IOVDATAERROR_H
16 
17 #include <exception>
18 #include <iostream>
19 
20 namespace lariov {
21 
25  class IOVDataError : public std::exception {
26 
27  public:
28  IOVDataError(std::string msg = "") : std::exception()
29  {
30  fMsg = "\033[93m";
31  fMsg += msg;
32  fMsg += "\033[00m";
33  }
34 
35  virtual ~IOVDataError() throw(){};
36  virtual const char* what() const throw() { return fMsg.c_str(); }
37 
38  private:
39  std::string fMsg;
40  };
41 
42 }
43 
44 #endif
45  // end of doxygen group
virtual const char * what() const
Definition: IOVDataError.h:36
STL namespace.
IOVDataError(std::string msg="")
Definition: IOVDataError.h:28
virtual ~IOVDataError()
Definition: IOVDataError.h:35
Filters for channels, events, etc.
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33