CMS 3D CMS Logo

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

#include <MakeDataException.h>

Inheritance diagram for edm::eventsetup::MakeDataException:
cms::Exception

Public Member Functions

 MakeDataException (const EventSetupRecordKey &, const DataKey &)
 
const char * myMessage () const noexcept
 
 ~MakeDataException () 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
 

Static Public Member Functions

static std::string standardMessage (const EventSetupRecordKey &, const DataKey &)
 

Private Attributes

std::string message_
 

Detailed Description

Definition at line 45 of file MakeDataException.h.

Constructor & Destructor Documentation

◆ MakeDataException()

MakeDataException::MakeDataException ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey 
)

Definition at line 7 of file MakeDataException.cc.

References cms::Exception::append(), and myMessage().

8  : cms::Exception("MakeDataException"), message_(standardMessage(iRecordKey, iDataKey)) {
9  this->append(myMessage());
10  }
static std::string standardMessage(const EventSetupRecordKey &, const DataKey &)
void append(Exception const &another)
Definition: Exception.cc:157
const char * myMessage() const noexcept

◆ ~MakeDataException()

edm::eventsetup::MakeDataException::~MakeDataException ( )
inlineoverridenoexcept

Definition at line 48 of file MakeDataException.h.

48 {}

Member Function Documentation

◆ myMessage()

const char* edm::eventsetup::MakeDataException::myMessage ( ) const
inlinenoexcept

Definition at line 51 of file MakeDataException.h.

References message_.

Referenced by MakeDataException().

51 { return message_.c_str(); }

◆ standardMessage()

std::string MakeDataException::standardMessage ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey 
)
static

Definition at line 13 of file MakeDataException.cc.

References edm::eventsetup::heterocontainer::HCTypeTag::name(), edm::eventsetup::DataKey::name(), AlCaHLTBitMon_QueryRunRegistry::string, edm::eventsetup::EventSetupRecordKey::type(), edm::eventsetup::DataKey::type(), and edm::eventsetup::SimpleStringTag::value().

13  {
14  std::string returnValue = std::string("Error while making data \"") + iDataKey.type().name() + "\" \"" +
15  iDataKey.name().value() + "\" in Record " + iRecordKey.type().name();
16  return returnValue;
17  }

Member Data Documentation

◆ message_

std::string edm::eventsetup::MakeDataException::message_
private

Definition at line 63 of file MakeDataException.h.

Referenced by myMessage().