/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWStorage/StorageFactory/src/Throw.cc
18 строк
690 B
Chris Jones
Move Utilities/StorageFactory to FWStorage/StorageFactory
10 дек 2025, 18:12
10 дек 2025, 18:12
852ff34
Код
Авторство
О чём код?
#include "FWStorage/StorageFactory/src/Throw.h" #include "FWCore/Utilities/interface/Exception.h" #include <ostream> #include <cstring> void throwStorageError(const char *category, const char *context, const char *call, int error) { cms::Exception ex(category); ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")"; ex.addContext(context); throw ex; } void throwStorageError(edm::errors::ErrorCodes category, const char *context, const char *call, int error) { edm::Exception ex(category); ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")"; ex.addContext(context); throw ex; }