/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/GeometrySurface/interface/GeomExceptions.h
25 строк
635 B
Cms Build
Clang-Format
11 июн 2019, 11:30
11 июн 2019, 11:30
044a211
Код
Авторство
О чём код?
#ifndef Geom_GeomExceptions_H #define Geom_GeomExceptions_H #include <exception> #include <string> class BaseGeomException : public std::exception { public: BaseGeomException() throw() {} BaseGeomException(const std::string& message) : theMessage(message) {} ~BaseGeomException() throw() override {} const char* what() const throw() override { return theMessage.c_str(); } private: std::string theMessage; }; class GeometryError : public BaseGeomException { public: GeometryError() throw() {} GeometryError(const std::string& message) : BaseGeomException(message) {} ~GeometryError() throw() override {} }; #endif