/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Common/src/CommonExceptions.cc
13 строк
606 B
W. David Dagenhart
From scram b code-format-all (clang-format)
10 май 2019, 17:51
10 май 2019, 17:51
82e0ab0
Код
Авторство
О чём код?
#include "DataFormats/Common/interface/CommonExceptions.h" #include "DataFormats/Provenance/interface/ProductID.h" #include "FWCore/Utilities/interface/EDMException.h" namespace edm { void checkForWrongProduct(ProductID const& keyID, ProductID const& refID) { if (keyID != refID) { throw Exception(errors::InvalidReference) << "AssociationVector: trying to use [] operator passing a reference\n" << " with the wrong product id (i.e.: pointing to the wrong collection)\n" << " keyRef.id = " << keyID << ", ref.id = " << refID << "\n"; } } } // namespace edm