CMS 3D CMS Logo

Namespaces | Functions
RefCore.cc File Reference
#include "DataFormats/Common/interface/RefCore.h"
#include "DataFormats/Common/interface/WrapperBase.h"
#include "DataFormats/Common/interface/EDProductGetter.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Utilities/interface/TypeID.h"
#include <cassert>

Go to the source code of this file.

Namespaces

 edm
 HLT enums.
 

Functions

static void throwInvalidRefFromNoCache (const edm::TypeID &id, edm::ProductID const &prodID)
 
static void throwInvalidRefFromNullOrInvalidRef (const edm::TypeID &id)
 

Function Documentation

static void throwInvalidRefFromNoCache ( const edm::TypeID id,
edm::ProductID const &  prodID 
)
static

Definition at line 15 of file RefCore.cc.

References Exception, and edm::errors::InvalidReference.

Referenced by edm::RefCore::getProductPtr(), and edm::RefCore::tryToGetProductPtr().

15  {
17  << "RefCore: A request to resolve a reference to a product of type '" << id << "' with ProductID '" << prodID
18  << "' cannot be satisfied.\n"
19  << "The reference has neither a valid product pointer nor an EDProductGetter.\n"
20  << "The calling code must be modified to establish a functioning EDProducterGetter\n"
21  << "for the context in which this call is mode\n";
22 }
static void throwInvalidRefFromNullOrInvalidRef ( const edm::TypeID id)
static

Definition at line 8 of file RefCore.cc.

References Exception, and edm::errors::InvalidReference.

Referenced by edm::RefCore::getProductPtr(), and edm::RefCore::tryToGetProductPtr().

8  {
10  << "RefCore: Request to resolve a null or invalid reference to a product of type '" << id
11  << "' has been detected.\n"
12  << "Please modify the calling code to test validity before dereferencing.\n";
13 }