CMS 3D CMS Logo

MagExceptions.cc
Go to the documentation of this file.
2 
3 MagException::MagException(const char *message) : theMessage(message) {}
5 const char*
6 MagException::what() const throw() { return theMessage.c_str();}
7 
9  double a2, double b2, double c2) throw()
10 {
11  limits_[0] = a1;
12  limits_[1] = b1;
13  limits_[2] = c1;
14  limits_[3] = a2;
15  limits_[4] = b2;
16  limits_[5] = c2;
17 }
18 
20 
21 const char*
22 GridInterpolator3DException::what() const throw() { return "LinearGridInterpolator3D: field requested outside of grid validity";}
virtual ~MagException()
Definition: MagExceptions.cc:4
virtual const char * what() const
Definition: MagExceptions.cc:6
GridInterpolator3DException(double a1, double b1, double c1, double a2, double b2, double c2)
Definition: MagExceptions.cc:8
std::string theMessage
Definition: MagExceptions.h:14
virtual const char * what() const