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