File indexing completed on 2024-04-06 12:01:27
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 }
0017
0018 void throwException(const std::string& message, const std::string& methodName) {
0019 throw Exception(message, methodName);
0020 }
0021
0022 }