CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes
edm::eventsetup::NoDataExceptionBase Class Reference

#include <NoDataException.h>

Inheritance diagram for edm::eventsetup::NoDataExceptionBase:
cms::Exception edm::eventsetup::NoDataException< T > edm::eventsetup::NoProxyException< T >

Public Member Functions

const DataKeydataKey () const
 
 NoDataExceptionBase (const EventSetupRecordKey &iRecordKey, const DataKey &iDataKey, const char *category_name="NoDataException")
 
 ~NoDataExceptionBase () noexcept override
 
- Public Member Functions inherited from cms::Exception
void addAdditionalInfo (char const *info)
 
void addAdditionalInfo (std::string const &info)
 
void addContext (char const *context)
 
void addContext (std::string const &context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (char const *more_information)
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
virtual Exceptionclone () const
 
std::list< std::string > const & context () const
 
 Exception (char const *aCategory)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (Exception const &other)
 
 Exception (std::string const &aCategory)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
virtual std::string explainSelf () const
 
std::list< std::string > history () const
 
std::string message () const
 
Exceptionoperator= (Exception const &other)
 
void raise ()
 
int returnCode () const
 
void setAdditionalInfo (std::list< std::string > const &info)
 
void setAlreadyPrinted (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
char const * what () const noexcept override
 
 ~Exception () noexcept override
 

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_
 

Detailed Description

Definition at line 78 of file NoDataException.h.

Constructor & Destructor Documentation

◆ NoDataExceptionBase()

edm::eventsetup::NoDataExceptionBase::NoDataExceptionBase ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey,
const char *  category_name = "NoDataException" 
)

Definition at line 6 of file NoDataException.cc.

9  : cms::Exception(category_name), record_(iRecordKey), dataKey_(iDataKey) {}

◆ ~NoDataExceptionBase()

edm::eventsetup::NoDataExceptionBase::~NoDataExceptionBase ( )
overridenoexcept

Definition at line 11 of file NoDataException.cc.

11 {}

Member Function Documentation

◆ beginDataTypeMessage()

void edm::eventsetup::NoDataExceptionBase::beginDataTypeMessage ( std::string &  oString) const
private

Definition at line 25 of file NoDataException.cc.

25  {
26  oString += std::string("No data of type \"");
27  }

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by constructMessage().

◆ constructMessage()

void edm::eventsetup::NoDataExceptionBase::constructMessage ( const char *  iClassName,
const std::string &  iExtraInfo 
)
protected

◆ dataKey()

const DataKey & edm::eventsetup::NoDataExceptionBase::dataKey ( ) const

Definition at line 13 of file NoDataException.cc.

13 { return dataKey_; }

References dataKey_.

◆ endDataTypeMessage()

void edm::eventsetup::NoDataExceptionBase::endDataTypeMessage ( std::string &  oString) const
private

Definition at line 29 of file NoDataException.cc.

29  {
30  oString += "\" with label \"";
31  oString += this->dataKey_.name().value();
32  oString += "\" in record \"";
33  oString += this->record_.name();
34  oString += "\"";
35  }

References dataKey_, edm::eventsetup::EventSetupRecordKey::name(), edm::eventsetup::DataKey::name(), record_, and edm::eventsetup::SimpleStringTag::value().

Referenced by constructMessage().

◆ noProxyMessage()

std::string edm::eventsetup::NoDataExceptionBase::noProxyMessage ( )
staticprotected

Definition at line 21 of file NoDataException.cc.

21  {
22  return std::string("Please add an ESSource or ESProducer to your job which can deliver this data.\n");
23  }

References AlCaHLTBitMon_QueryRunRegistry::string.

◆ providerButNoDataMessage()

std::string edm::eventsetup::NoDataExceptionBase::providerButNoDataMessage ( const EventSetupRecordKey iKey)
staticprotected

Definition at line 15 of file NoDataException.cc.

15  {
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  }

References edm::eventsetup::EventSetupRecordKey::name(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::eventsetup::NoDataException< T >::NoDataException().

Member Data Documentation

◆ dataKey_

DataKey edm::eventsetup::NoDataExceptionBase::dataKey_
private

Definition at line 101 of file NoDataException.h.

Referenced by dataKey(), and endDataTypeMessage().

◆ record_

EventSetupRecordKey edm::eventsetup::NoDataExceptionBase::record_
private

Definition at line 100 of file NoDataException.h.

Referenced by endDataTypeMessage().

edm::eventsetup::NoDataExceptionBase::dataKey_
DataKey dataKey_
Definition: NoDataException.h:101
cms::Exception::message
std::string message() const
Definition: Exception.cc:145
edm::eventsetup::NoDataExceptionBase::record_
EventSetupRecordKey record_
Definition: NoDataException.h:100
edm::eventsetup::NoDataExceptionBase::endDataTypeMessage
void endDataTypeMessage(std::string &) const
Definition: NoDataException.cc:29
edm::eventsetup::DataKey::name
const NameTag & name() const
Definition: DataKey.h:53
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
Exception
Definition: hltDiff.cc:245
edm::eventsetup::NoDataExceptionBase::beginDataTypeMessage
void beginDataTypeMessage(std::string &) const
Definition: NoDataException.cc:25