Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:20

0001 #ifndef CondCore_CondDB_Exception_h
0002 #define CondCore_CondDB_Exception_h
0003 
0004 #include "FWCore/Utilities/interface/Exception.h"
0005 
0006 namespace cond {
0007 
0008   namespace persistency {
0009 
0010     /// Base exception class for the object to relational access
0011     class Exception : public cms::Exception {
0012     public:
0013       /// Constructor
0014       explicit Exception(const std::string& message);
0015       /// Constructor
0016       Exception(const std::string& message, const std::string& methodName);
0017       /// Destructor
0018       ~Exception() throw() override {}
0019     };
0020 
0021     void throwException [[noreturn]] (const std::string& message, const std::string& methodName);
0022 
0023   }  // namespace persistency
0024 
0025   typedef persistency::Exception Exception;
0026 
0027   void throwException [[noreturn]] (const std::string& message, const std::string& methodName);
0028 
0029 }  // namespace cond
0030 
0031 #endif