Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "CondCore/CondDB/interface/Exception.h"
0002 
0003 namespace cond {
0004 
0005   namespace persistency {
0006 
0007     Exception::Exception(const std::string& message) : cms::Exception("ConditionDatabase", message) {}
0008 
0009     Exception::Exception(const std::string& message, const std::string& methodName)
0010         : cms::Exception("ConditionDatabase", message + " from " + methodName) {}
0011 
0012     void throwException(const std::string& message, const std::string& methodName) {
0013       throw Exception(message, methodName);
0014     }
0015 
0016   }  // namespace persistency
0017 
0018   void throwException(const std::string& message, const std::string& methodName) {
0019     throw Exception(message, methodName);
0020   }
0021 
0022 }  // namespace cond