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