CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~BaseGeomException() throw() {}
12  virtual const char* what() const throw() { return theMessage.c_str();}
13 private:
14  std::string theMessage;
15 };
16 
18 public:
20  GeometryError( const std::string& message) : BaseGeomException(message) {}
21  virtual ~GeometryError() throw() {}
22 };
23 
24 #endif
BaseGeomException(const std::string &message)
virtual ~GeometryError()
std::string theMessage
virtual const char * what() const
GeometryError(const std::string &message)
virtual ~BaseGeomException()