Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:11

0001 #include "FWCore/Framework/interface/MakeDataException.h"
0002 
0003 // forward declarations
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     // ---------- static member functions --------------------
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   }  // namespace eventsetup
0020 }  // namespace edm