CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 () noexceptoverride
 
- 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 (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
char const * what () const noexceptoverride
 
 ~Exception () noexceptoverride
 

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

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) {}
edm::eventsetup::NoDataExceptionBase::~NoDataExceptionBase ( )
overridenoexcept

Definition at line 11 of file NoDataException.cc.

11 {}

Member Function Documentation

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  }
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  {
39  beginDataTypeMessage(message);
40  message += iClassName;
41  endDataTypeMessage(message);
42  this->append(message + std::string("\n "));
43  this->append(iExtraInfo);
44  }
void append(Exception const &another)
Definition: Exception.cc:153
std::string message() const
Definition: Exception.cc:145
void beginDataTypeMessage(std::string &) const
void endDataTypeMessage(std::string &) const
const DataKey & edm::eventsetup::NoDataExceptionBase::dataKey ( ) const

Definition at line 13 of file NoDataException.cc.

References dataKey_.

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
std::string edm::eventsetup::NoDataExceptionBase::noProxyMessage ( )
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  }
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 edm::eventsetup::NoDataExceptionBase::dataKey_
private

Definition at line 101 of file NoDataException.h.

Referenced by dataKey(), and endDataTypeMessage().

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

Definition at line 100 of file NoDataException.h.

Referenced by endDataTypeMessage().