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  virtual ~MagException() throw();
12  virtual const char* what() const throw();
13 private:
15 };
16 
18 public:
20  MagGeometryError(const char *message) : MagException(message) {}
21  virtual ~MagGeometryError() throw() {}
22 };
23 
24 class MagLogicError : public MagException {
25 public:
27  MagLogicError(const char *message) : MagException(message) {}
28  virtual ~MagLogicError() throw() {}
29 };
30 
32 public:
33 
34  GridInterpolator3DException(double a1, double b1, double c1,
35  double a2, double b2, double c2) throw();
36  virtual ~GridInterpolator3DException() throw();
37  virtual const char* what() const throw();
38  double *limits(void) {return limits_;}
39 protected:
40  double limits_[6];
41 };
42 
43 #endif
virtual ~MagException()
Definition: MagExceptions.cc:4
virtual ~MagLogicError()
Definition: MagExceptions.h:28
MagLogicError(const char *message)
Definition: MagExceptions.h:27
virtual const char * what() const
Definition: MagExceptions.cc:6
MagGeometryError(const char *message)
Definition: MagExceptions.h:20
std::string theMessage
Definition: MagExceptions.h:14
virtual ~MagGeometryError()
Definition: MagExceptions.h:21