CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes

edm::eventsetup::NoDataExceptionBase Class Reference

#include <NoDataException.h>

Inheritance diagram for edm::eventsetup::NoDataExceptionBase:
cms::Exception edm::eventsetup::NoDataException< T > edm::eventsetup::NoProxyException< T >

List of all members.

Public Member Functions

const DataKeydataKey () const
 NoDataExceptionBase (const EventSetupRecordKey &iRecordKey, const DataKey &iDataKey, const char *category_name="NoDataException")
virtual ~NoDataExceptionBase () throw ()

Protected Member Functions

void constructMessage (const char *iClassName, const std::string &iExtraInfo)

Static Protected Member Functions

static std::string noProxyMessage ()
static std::string providerButNoDataMessage (const EventSetupRecordKey &iKey)

Private Member Functions

void beginDataTypeMessage (std::string &) const
void endDataTypeMessage (std::string &) const

Private Attributes

DataKey dataKey_
EventSetupRecordKey record_

Detailed Description

Definition at line 78 of file NoDataException.h.


Constructor & Destructor Documentation

edm::eventsetup::NoDataExceptionBase::NoDataExceptionBase ( const EventSetupRecordKey iRecordKey,
const DataKey iDataKey,
const char *  category_name = "NoDataException" 
)

Definition at line 6 of file NoDataException.cc.

                                                                         :
     cms::Exception(category_name),
     record_(iRecordKey),
     dataKey_(iDataKey)
     {
     }
edm::eventsetup::NoDataExceptionBase::~NoDataExceptionBase ( ) throw () [virtual]

Definition at line 15 of file NoDataException.cc.

{}

Member Function Documentation

void edm::eventsetup::NoDataExceptionBase::beginDataTypeMessage ( std::string &  oString) const [private]

Definition at line 29 of file NoDataException.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by constructMessage().

     {
        oString+= std::string("No data of type \"");
     }
void edm::eventsetup::NoDataExceptionBase::constructMessage ( const char *  iClassName,
const std::string &  iExtraInfo 
) [protected]
const DataKey & edm::eventsetup::NoDataExceptionBase::dataKey ( ) const

Definition at line 17 of file NoDataException.cc.

References dataKey_.

{ return dataKey_; }
void edm::eventsetup::NoDataExceptionBase::endDataTypeMessage ( std::string &  oString) const [private]

Definition at line 34 of file NoDataException.cc.

References dataKey_, edm::eventsetup::EventSetupRecordKey::name(), edm::eventsetup::DataKey::name(), record_, and edm::eventsetup::SimpleStringTag::value().

Referenced by constructMessage().

     {
        oString += "\" with label \"";
        oString += this->dataKey_.name().value();
        oString += "\" in record \"";
        oString += this->record_.name();
        oString += "\"";
     }
std::string edm::eventsetup::NoDataExceptionBase::noProxyMessage ( ) [static, protected]

Definition at line 25 of file NoDataException.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

                                                   {
        return std::string("Please add an ESSource or ESProducer to your job which can deliver this data.\n");
     }
std::string edm::eventsetup::NoDataExceptionBase::providerButNoDataMessage ( const EventSetupRecordKey iKey) [static, protected]

Definition at line 19 of file NoDataException.cc.

References edm::eventsetup::EventSetupRecordKey::name(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::eventsetup::NoDataException< T >::NoDataException().

                                                                                            {
        return std::string(" A provider for this data exists, but it's unable to deliver the data for this \"")
        +iKey.name()
        +"\" record.\n Perhaps no valid data exists for this IOV? Please check the data's interval of validity.\n";
     }

Member Data Documentation

Definition at line 100 of file NoDataException.h.

Referenced by dataKey(), and endDataTypeMessage().

Definition at line 99 of file NoDataException.h.

Referenced by endDataTypeMessage().