CMS 3D CMS Logo

NoDataException.cc
Go to the documentation of this file.
2 
3 namespace edm {
4  namespace eventsetup {
5 
7  const DataKey& iDataKey,
8  const char* category_name)
9  : cms::Exception(category_name), record_(iRecordKey), dataKey_(iDataKey) {}
10 
12 
13  const DataKey& NoDataExceptionBase::dataKey() const { return dataKey_; }
14 
16  return std::string(" A provider for this data exists, but it's unable to deliver the data for this \"") +
17  iKey.name() +
18  "\" record.\n Perhaps no valid data exists for this IOV? Please check the data's interval of validity.\n";
19  }
20 
22  return std::string("Please add an ESSource or ESProducer to your job which can deliver this data.\n");
23  }
24 
26  oString += std::string("No data of type \"");
27  }
28 
30  oString += "\" with label \"";
31  oString += this->dataKey_.name().value();
32  oString += "\" in record \"";
33  oString += this->record_.name();
34  oString += "\"";
35  }
36 
37  void NoDataExceptionBase::constructMessage(const char* iClassName, const std::string& iExtraInfo) {
40  message += iClassName;
42  this->append(message + std::string("\n "));
43  this->append(iExtraInfo);
44  }
45 
46  } // namespace eventsetup
47 } // namespace edm
edm::eventsetup::NoDataExceptionBase::dataKey_
DataKey dataKey_
Definition: NoDataException.h:101
edm::eventsetup::NoDataExceptionBase::dataKey
const DataKey & dataKey() const
Definition: NoDataException.cc:13
cms::Exception::message
std::string message() const
Definition: Exception.cc:145
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::eventsetup::NoDataExceptionBase::record_
EventSetupRecordKey record_
Definition: NoDataException.h:100
edm::eventsetup::DataKey
Definition: DataKey.h:29
edm::eventsetup::NoDataExceptionBase::constructMessage
void constructMessage(const char *iClassName, const std::string &iExtraInfo)
Definition: NoDataException.cc:37
edm::eventsetup::NoDataExceptionBase::endDataTypeMessage
void endDataTypeMessage(std::string &) const
Definition: NoDataException.cc:29
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
edm::Exception
Definition: EDMException.h:77
edm::eventsetup::NoDataExceptionBase::noProxyMessage
static std::string noProxyMessage()
Definition: NoDataException.cc:21
edm::eventsetup::DataKey::name
const NameTag & name() const
Definition: DataKey.h:53
edm::eventsetup::NoDataExceptionBase::~NoDataExceptionBase
~NoDataExceptionBase() noexcept override
Definition: NoDataException.cc:11
edm::eventsetup::SimpleStringTag::value
const char * value() const
Definition: DataKeyTags.h:39
edm::eventsetup::EventSetupRecordKey::name
const char * name() const
Definition: EventSetupRecordKey.h:46
cms::Exception::append
void append(Exception const &another)
Definition: Exception.cc:153
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
NoDataException.h
edm::eventsetup::NoDataExceptionBase::providerButNoDataMessage
static std::string providerButNoDataMessage(const EventSetupRecordKey &iKey)
Definition: NoDataException.cc:15
edm::eventsetup::NoDataExceptionBase::NoDataExceptionBase
NoDataExceptionBase(const EventSetupRecordKey &iRecordKey, const DataKey &iDataKey, const char *category_name="NoDataException")
Definition: NoDataException.cc:6
edm::eventsetup::NoDataExceptionBase::beginDataTypeMessage
void beginDataTypeMessage(std::string &) const
Definition: NoDataException.cc:25
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21