CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
RefCore.cc File Reference
#include "DataFormats/Common/interface/RefCore.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Utilities/interface/TypeID.h"
#include <cassert>
#include <iostream>
#include <ostream>

Go to the source code of this file.

Namespaces

 edm
 A PluginFactory for concrete instances of class KalmanAlignmentMetricsUpdator.
 

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 19 of file RefCore.cc.

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

Referenced by edm::RefCore::getProductPtr().

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

Definition at line 9 of file RefCore.cc.

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

Referenced by edm::RefCore::getProductPtr().

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