00001 #include "FWCore/Framework/interface/MakeDataException.h" 00002 00003 // forward declarations 00004 namespace edm { 00005 namespace eventsetup { 00006 00007 MakeDataException::MakeDataException( const EventSetupRecordKey& iRecordKey, const DataKey& iDataKey) : 00008 cms::Exception("MakeDataException"), 00009 message_(standardMessage(iRecordKey,iDataKey)) 00010 { 00011 this->append(myMessage()); 00012 } 00013 00014 // ---------- static member functions -------------------- 00015 std::string MakeDataException::standardMessage( const EventSetupRecordKey& iRecordKey, const DataKey& iDataKey) 00016 { 00017 std::string returnValue = std::string("Error while making data \"") 00018 + iDataKey.type().name() 00019 + "\" \"" 00020 + iDataKey.name().value() 00021 + "\" in Record " 00022 + iRecordKey.type().name(); 00023 return returnValue; 00024 } 00025 00026 00027 } 00028 }