/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
MagneticField/VolumeGeometry/interface/MagExceptions.h
43 строки
1 KB
Cms Build
Clang-Format
03 июн 2019, 06:34
03 июн 2019, 06:34
08e36f7
Код
Авторство
О чём код?
#ifndef Mag_MagExceptions_H #define Mag_MagExceptions_H #include <exception> #include <string> class MagException : public std::exception { public: MagException() throw() {} MagException(const char *message); ~MagException() throw() override; const char *what() const throw() override; private: std::string theMessage; }; class MagGeometryError : public MagException { public: MagGeometryError() throw() {} MagGeometryError(const char *message) : MagException(message) {} ~MagGeometryError() throw() override {} }; class MagLogicError : public MagException { public: MagLogicError() throw() {} MagLogicError(const char *message) : MagException(message) {} ~MagLogicError() throw() override {} }; class GridInterpolator3DException : public std::exception { public: GridInterpolator3DException(double a1, double b1, double c1, double a2, double b2, double c2) throw(); ~GridInterpolator3DException() throw() override; const char *what() const throw() override; double *limits(void) { return limits_; } protected: double limits_[6]; }; #endif