File indexing completed on 2024-04-06 12:12:11
0001 #include "FWCore/Framework/interface/MakeDataException.h"
0002
0003
0004 namespace edm {
0005 namespace eventsetup {
0006
0007 MakeDataException::MakeDataException(const EventSetupRecordKey& iRecordKey, const DataKey& iDataKey)
0008 : cms::Exception("MakeDataException"), message_(standardMessage(iRecordKey, iDataKey)) {
0009 this->append(myMessage());
0010 }
0011
0012
0013 std::string MakeDataException::standardMessage(const EventSetupRecordKey& iRecordKey, const DataKey& iDataKey) {
0014 std::string returnValue = std::string("Error while making data \"") + iDataKey.type().name() + "\" \"" +
0015 iDataKey.name().value() + "\" in Record " + iRecordKey.type().name();
0016 return returnValue;
0017 }
0018
0019 }
0020 }