CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 MakeDataException (const EventSetupRecordKey &, const DataKey &)
const char * myMessage () const throw ()
 ~MakeDataException () throw ()

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

                                                                                                    : 
cms::Exception("MakeDataException"),
message_(standardMessage(iRecordKey,iDataKey))
{
  this->append(myMessage());
}
edm::eventsetup::MakeDataException::~MakeDataException ( ) throw () [inline]

Definition at line 49 of file MakeDataException.h.

{}

Member Function Documentation

const char* edm::eventsetup::MakeDataException::myMessage ( ) const throw () [inline]

Definition at line 52 of file MakeDataException.h.

References message_.

Referenced by MakeDataException().

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

Definition at line 15 of file MakeDataException.cc.

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

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

Member Data Documentation

Definition at line 66 of file MakeDataException.h.

Referenced by myMessage().