CMS 3D CMS Logo

GeomExceptions.h
Go to the documentation of this file.
1 #ifndef Geom_GeomExceptions_H
2 #define Geom_GeomExceptions_H
3 
4 #include <exception>
5 #include <string>
6 
8 public:
10  BaseGeomException(const std::string& message) : theMessage(message) {}
11  ~BaseGeomException() throw() override {}
12  const char* what() const throw() override { return theMessage.c_str(); }
13 
14 private:
16 };
17 
19 public:
21  GeometryError(const std::string& message) : BaseGeomException(message) {}
22  ~GeometryError() throw() override {}
23 };
24 
25 #endif
~BaseGeomException() override
BaseGeomException(const std::string &message)
std::string theMessage
~GeometryError() override
GeometryError(const std::string &message)
const char * what() const override