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 private:
15 };
16 
18 public:
20  GeometryError( const std::string& message) : BaseGeomException(message) {}
21  ~GeometryError() throw() override {}
22 };
23 
24 #endif
~BaseGeomException() override
BaseGeomException(const std::string &message)
std::string theMessage
~GeometryError() override
GeometryError(const std::string &message)
const char * what() const override