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::NoProductResolverException< 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 (std::string const &info)
 
void addAdditionalInfo (char const *info)
 
void addContext (std::string const &context)
 
void addContext (char const *context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char 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 (std::string const &aCategory)
 
 Exception (char const *aCategory)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
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 ()
 
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 noProviderMessage ()
 
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.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by constructMessage().

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

◆ constructMessage()

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

Definition at line 37 of file NoDataException.cc.

References cms::Exception::append(), beginDataTypeMessage(), endDataTypeMessage(), cms::Exception::message(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

37  {
40  message += iClassName;
42  this->append(message + std::string("\n "));
43  this->append(iExtraInfo);
44  }
void append(Exception const &another)
Definition: Exception.cc:157
void beginDataTypeMessage(std::string &) const
std::string message() const
Definition: Exception.cc:149
void endDataTypeMessage(std::string &) const

◆ dataKey()

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

Definition at line 13 of file NoDataException.cc.

References dataKey_.

◆ endDataTypeMessage()

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

Definition at line 29 of file NoDataException.cc.

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

Referenced by constructMessage().

29  {
30  oString += "\" with label \"";
31  oString += this->dataKey_.name().value();
32  oString += "\" in record \"";
33  oString += this->record_.name();
34  oString += "\"";
35  }
const NameTag & name() const
Definition: DataKey.h:53
const char * value() const
Definition: DataKeyTags.h:39

◆ noProviderMessage()

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

Definition at line 21 of file NoDataException.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

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

◆ providerButNoDataMessage()

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

Definition at line 15 of file NoDataException.cc.

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

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

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  }

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().