CMS 3D CMS Logo

Namespaces | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/Common/src/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

namespace  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 Exception, and edm::errors::InvalidReference.

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

                                                                                 {
  throw edm::Exception(edm::errors::InvalidReference,
                  "BadRefCore")
  << "RefCore: A request to resolve a reference to a product of type '"
  << id
  << "' with ProductID '" << prodID
        << "' cannot be satisfied.\n"
        << "The reference has neither a valid product pointer nor an EDProductGetter.\n"
        << "The calling code must be modified to establish a functioning EDProducterGetter\n"
  << "for the context in which this call is mode\n";
  
}
static void throwInvalidRefFromNullOrInvalidRef ( const edm::TypeID id) [static]

Definition at line 9 of file RefCore.cc.

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

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

                                                              {
  throw edm::Exception(edm::errors::InvalidReference,
                  "BadRefCore")
  << "RefCore: Request to resolve a null or invalid reference to a product of type '"
  << id
        << "' has been detected.\n"
  << "Please modify the calling code to test validity before dereferencing.\n";  
}