LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CMTException.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CMTEXCEPTION_H
15 #define RECOTOOL_CMTEXCEPTION_H
16 
17 #include <exception>
18 #include <string>
19 
20 namespace cmtool {
25  class CMTException : public std::exception {
26 
27  public:
28  CMTException(std::string msg = "") : _msg(msg) {}
29 
30  const char* what() const noexcept override { return _msg.c_str(); }
31 
32  private:
33  std::string _msg;
34  };
35 
36 }
37 #endif
38  // end of doxygen group
const char * what() const noexcept override
Definition: CMTException.h:30
CMTException(std::string msg="")
Definition: CMTException.h:28
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33