1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "CondCore/CondDB/interface/Exception.h"
namespace cond {
namespace persistency {
Exception::Exception(const std::string& message) : cms::Exception("ConditionDatabase", message) {}
Exception::Exception(const std::string& message, const std::string& methodName)
: cms::Exception("ConditionDatabase", message + " from " + methodName) {}
void throwException(const std::string& message, const std::string& methodName) {
throw Exception(message, methodName);
}
} // namespace persistency
void throwException(const std::string& message, const std::string& methodName) {
throw Exception(message, methodName);
}
} // namespace cond
|