LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 <iostream>
18 #include <exception>
19 
20 namespace cmtool {
25  class CMTException : public std::exception{
26 
27  public:
28 
29  CMTException(std::string msg="") : std::exception(), _msg(msg)
30  {}
31 
32  virtual ~CMTException() throw(){};
33  virtual const char* what() const throw()
34  {return _msg.c_str(); }
35 
36  private:
37 
38  std::string _msg;
39  };
40 
41 }
42 #endif
43  // end of doxygen group
44 
virtual ~CMTException()
Definition: CMTException.h:32
STL namespace.
CMTException(std::string msg="")
Definition: CMTException.h:29
virtual const char * what() const
Definition: CMTException.h:33
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33