/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/PatCandidates/src/throwMissingLabel.cc
17 строк
614 B
Cms Build
Clang-Format
26 июн 2019, 18:39
26 июн 2019, 18:39
0b91a9a
Код
Авторство
О чём код?
#include "DataFormats/PatCandidates/interface/throwMissingLabel.h" #include "FWCore/Utilities/interface/Exception.h" #include <iostream> namespace pat { void throwMissingLabel(const std::string& what, const std::string& bad_label, const std::vector<std::string>& available) { cms::Exception ex(std::string("Unknown") + what); ex << "Requested " << what << " " << bad_label << " is not available! Possible " << what << "s are: " << std::endl; for (const auto& name : available) { ex << name << ' '; } throw ex; } } // namespace pat