Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
Common
src
CommonExceptions.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/CommonExceptions.h
"
2
#include "
DataFormats/Provenance/interface/ProductID.h
"
3
#include "
FWCore/Utilities/interface/EDMException.h
"
4
namespace
edm {
5
void
6
checkForWrongProduct
(
ProductID
const
& keyID,
ProductID
const
& refID) {
7
if
(keyID != refID) {
8
throw
Exception
(
errors::InvalidReference
) <<
9
"AssociationVector: trying to use [] operator passing a reference\n"
<<
10
" with the wrong product id (i.e.: pointing to the wrong collection)\n"
<<
11
" keyRef.id = "
<< keyID <<
", ref.id = "
<< refID <<
"\n"
;
12
13
}
14
}
15
}
16
edm::checkForWrongProduct
void checkForWrongProduct(ProductID const &keyID, ProductID const &refID)
Definition:
CommonExceptions.cc:6
ProductID.h
EDMException.h
edm::ProductID
Definition:
ProductID.h:27
CommonExceptions.h
edm::errors::InvalidReference
Definition:
EDMException.h:43
edm::hlt::Exception
error
Definition:
HLTenums.h:21
Generated for CMSSW Reference Manual by
1.8.5