CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Exception.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_Exception_h
2 #define CondCore_CondDB_Exception_h
3 
5 // to bw removed after the transition
7 
8 namespace cond {
9 
10  namespace persistency {
11 
13  class Exception : public cms::Exception {
14  public:
16  Exception( const std::string& message, const std::string& methodName );
18  virtual ~Exception() throw() {}
19  };
20 
21  void throwException [[noreturn]] ( const std::string& message, const std::string& methodName );
22 
23  }
24 }
25 
26 #endif
Base exception class for the object to relational access.
Definition: Exception.h:13
std::string message() const
Definition: Exception.cc:187
virtual ~Exception()
Destructor.
Definition: Exception.h:18
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:11
Exception(const std::string &message, const std::string &methodName)
Constructor.
Definition: Exception.cc:8