#include <NoDataException.h>
Public Member Functions | |
const DataKey & | dataKey () const |
NoDataExceptionBase (const EventSetupRecordKey &iRecordKey, const DataKey &iDataKey, const char *category_name="NoDataException") | |
virtual | ~NoDataExceptionBase () throw () |
Protected Member Functions | |
void | constructMessage (const char *iClassName, const std::string &iExtraInfo) |
Static Protected Member Functions | |
static std::string | noProxyMessage () |
static std::string | providerButNoDataMessage (const EventSetupRecordKey &iKey) |
Private Member Functions | |
void | beginDataTypeMessage (std::string &) const |
void | endDataTypeMessage (std::string &) const |
Private Attributes | |
DataKey | dataKey_ |
EventSetupRecordKey | record_ |
Definition at line 78 of file NoDataException.h.
edm::eventsetup::NoDataExceptionBase::NoDataExceptionBase | ( | const EventSetupRecordKey & | iRecordKey, |
const DataKey & | iDataKey, | ||
const char * | category_name = "NoDataException" |
||
) |
Definition at line 6 of file NoDataException.cc.
: cms::Exception(category_name), record_(iRecordKey), dataKey_(iDataKey) { }
edm::eventsetup::NoDataExceptionBase::~NoDataExceptionBase | ( | ) | throw () [virtual] |
Definition at line 15 of file NoDataException.cc.
{}
void edm::eventsetup::NoDataExceptionBase::beginDataTypeMessage | ( | std::string & | oString | ) | const [private] |
Definition at line 29 of file NoDataException.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by constructMessage().
{ oString+= std::string("No data of type \""); }
void edm::eventsetup::NoDataExceptionBase::constructMessage | ( | const char * | iClassName, |
const std::string & | iExtraInfo | ||
) | [protected] |
Definition at line 43 of file NoDataException.cc.
References cms::Exception::append(), beginDataTypeMessage(), endDataTypeMessage(), cms::Exception::message(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::eventsetup::NoDataException< T >::NoDataException().
{ std::string message; beginDataTypeMessage(message); message += iClassName; endDataTypeMessage(message); this->append(message+std::string("\n ")); this->append(iExtraInfo); }
const DataKey & edm::eventsetup::NoDataExceptionBase::dataKey | ( | ) | const |
void edm::eventsetup::NoDataExceptionBase::endDataTypeMessage | ( | std::string & | oString | ) | const [private] |
Definition at line 34 of file NoDataException.cc.
References dataKey_, edm::eventsetup::EventSetupRecordKey::name(), edm::eventsetup::DataKey::name(), record_, and edm::eventsetup::SimpleStringTag::value().
Referenced by constructMessage().
std::string edm::eventsetup::NoDataExceptionBase::noProxyMessage | ( | ) | [static, protected] |
Definition at line 25 of file NoDataException.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
{ return std::string("Please add an ESSource or ESProducer to your job which can deliver this data.\n"); }
std::string edm::eventsetup::NoDataExceptionBase::providerButNoDataMessage | ( | const EventSetupRecordKey & | iKey | ) | [static, protected] |
Definition at line 19 of file NoDataException.cc.
References edm::eventsetup::EventSetupRecordKey::name(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::eventsetup::NoDataException< T >::NoDataException().
{ return std::string(" A provider for this data exists, but it's unable to deliver the data for this \"") +iKey.name() +"\" record.\n Perhaps no valid data exists for this IOV? Please check the data's interval of validity.\n"; }
Definition at line 100 of file NoDataException.h.
Referenced by dataKey(), and endDataTypeMessage().
Definition at line 99 of file NoDataException.h.
Referenced by endDataTypeMessage().