CMS 3D CMS Logo

Exception.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_Exception_h
2 #define CondCore_CondDB_Exception_h
3 
5 
6 namespace cond {
7 
8  namespace persistency {
9 
11  class Exception : public cms::Exception {
12  public:
14  explicit Exception( const std::string& message );
16  Exception( const std::string& message, const std::string& methodName );
18  ~Exception() throw() override {}
19  };
20 
21  void throwException [[noreturn]] ( const std::string& message, const std::string& methodName );
22 
23  }
24 
26 
27  void throwException [[noreturn]] ( const std::string& message, const std::string& methodName );
28 
29 }
30 
31 #endif
Base exception class for the object to relational access.
Definition: Exception.h:11
std::string message() const
Definition: Exception.cc:145
~Exception() override
Destructor.
Definition: Exception.h:18
Exception(const std::string &message)
Constructor.
Definition: Exception.cc:8
Definition: plugin.cc:24
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:14