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

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.

8  : cms::Exception("MakeDataException"), message_(standardMessage(iRecordKey, iDataKey)) {
9  this->append(myMessage());
10  }

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

◆ ~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.

51 { return message_.c_str(); }

References message_.

Referenced by MakeDataException().

◆ standardMessage()

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

Definition at line 13 of file MakeDataException.cc.

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  }

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

Member Data Documentation

◆ message_

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

Definition at line 63 of file MakeDataException.h.

Referenced by myMessage().

cms::Exception::append
void append(Exception const &another)
Definition: Exception.cc:153
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::eventsetup::MakeDataException::message_
std::string message_
Definition: MakeDataException.h:63
Exception
Definition: hltDiff.cc:245
edm::eventsetup::MakeDataException::myMessage
const char * myMessage() const noexcept
Definition: MakeDataException.h:51
edm::eventsetup::MakeDataException::standardMessage
static std::string standardMessage(const EventSetupRecordKey &, const DataKey &)
Definition: MakeDataException.cc:13