CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MakeDataException.cc
Go to the documentation of this file.
2 
3 // forward declarations
4 namespace edm {
5  namespace eventsetup {
6 
7 MakeDataException::MakeDataException( const EventSetupRecordKey& iRecordKey, const DataKey& iDataKey) :
8 cms::Exception("MakeDataException"),
9 message_(standardMessage(iRecordKey,iDataKey))
10 {
11  this->append(myMessage());
12 }
13 
14  // ---------- static member functions --------------------
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 }
25 
26 
27  }
28 }
static std::string standardMessage(const EventSetupRecordKey &, const DataKey &)
void append(Exception const &another)
Definition: Exception.cc:203
const TypeTag & type() const
Definition: DataKey.h:65
const NameTag & name() const
Definition: DataKey.h:66
const char * value() const
Definition: DataKeyTags.h:39
MakeDataException(const EventSetupRecordKey &, const DataKey &)