CMS 3D CMS Logo

MagExceptions.h
Go to the documentation of this file.
1 #ifndef Mag_MagExceptions_H
2 #define Mag_MagExceptions_H
3 
4 #include <exception>
5 #include <string>
6 
7 class MagException : public std::exception {
8 public:
10  MagException( const char *message);
11  ~MagException() throw() override;
12  const char* what() const throw() override;
13 private:
15 };
16 
18 public:
20  MagGeometryError(const char *message) : MagException(message) {}
21  ~MagGeometryError() throw() override {}
22 };
23 
24 class MagLogicError : public MagException {
25 public:
27  MagLogicError(const char *message) : MagException(message) {}
28  ~MagLogicError() throw() override {}
29 };
30 
32 public:
33 
34  GridInterpolator3DException(double a1, double b1, double c1,
35  double a2, double b2, double c2) throw();
36  ~GridInterpolator3DException() throw() override;
37  const char* what() const throw() override;
38  double *limits(void) {return limits_;}
39 protected:
40  double limits_[6];
41 };
42 
43 #endif
const char * what() const override
Definition: MagExceptions.cc:6
~MagGeometryError() override
Definition: MagExceptions.h:21
MagLogicError(const char *message)
Definition: MagExceptions.h:27
~MagLogicError() override
Definition: MagExceptions.h:28
MagGeometryError(const char *message)
Definition: MagExceptions.h:20
~MagException() override
Definition: MagExceptions.cc:4
std::string theMessage
Definition: MagExceptions.h:14