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
 
 ~MakeDataException () 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 (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
char const * what () const override
 
 ~Exception () 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 ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey 
)

Definition at line 7 of file MakeDataException.cc.

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

7  :
8 cms::Exception("MakeDataException"),
9 message_(standardMessage(iRecordKey,iDataKey))
10 {
11  this->append(myMessage());
12 }
static std::string standardMessage(const EventSetupRecordKey &, const DataKey &)
void append(Exception const &another)
Definition: Exception.cc:203
edm::eventsetup::MakeDataException::~MakeDataException ( )
inlineoverride

Definition at line 49 of file MakeDataException.h.

49 {}

Member Function Documentation

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

Definition at line 52 of file MakeDataException.h.

References message_, standardMessage(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by MakeDataException().

52  {
53  return message_.c_str();
54  }
std::string MakeDataException::standardMessage ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey 
)
static

Definition at line 15 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().

Referenced by myMessage().

16 {
17  std::string returnValue = std::string("Error while making data \"")
18  + iDataKey.type().name()
19  + "\" \""
20  + iDataKey.name().value()
21  + "\" in Record "
22  + iRecordKey.type().name();
23  return returnValue;
24 }

Member Data Documentation

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

Definition at line 66 of file MakeDataException.h.

Referenced by myMessage().