CMS 3D CMS Logo

NoRecordException.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : NoRecordException
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Fri Aug 28 13:27:25 CDT 2009
11 //
12 
13 // system include files
14 
15 // user include files
21 
23  return iES.recordIsProvidedByAModule(iKey);
24 }
25 
27  const char* iName,
28  bool iKnownRecord) {
29  oException << "No \"" << iName << "\" record found in the EventSetup.n";
30  if (iKnownRecord) {
31  oException << "\n The Record is delivered by an ESSource or ESProducer but there is no valid IOV for the "
32  "synchronizatio value.\n"
33  " Please check \n"
34  " a) if the synchronization value is reasonable and report to the hypernews if it is not.\n"
35  " b) else check that all ESSources have been properly configured. \n";
36  } else {
37  oException << "\n Please add an ESSource or ESProducer that delivers such a record.\n";
38  }
39 }
void no_record_exception_message_builder(cms::Exception &, const char *, bool iKnownRecord)
bool recordIsProvidedByAModule(eventsetup::EventSetupRecordKey const &) const
bool recordDoesExist(edm::EventSetupImpl const &, edm::eventsetup::EventSetupRecordKey const &)