CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/MagneticField/VolumeGeometry/src/MagExceptions.cc

Go to the documentation of this file.
00001 #include "MagneticField/VolumeGeometry/interface/MagExceptions.h"
00002 
00003 MagException::MagException(const char *message) : theMessage(message) {}
00004 MagException::~MagException() throw() {}
00005 const char* 
00006 MagException::what() const throw() { return theMessage.c_str();}
00007 
00008 GridInterpolator3DException::GridInterpolator3DException(double a1, double b1, double c1,
00009                                                          double a2, double b2, double c2)  throw() 
00010 {
00011   limits_[0] = a1;
00012   limits_[1] = b1;
00013   limits_[2] = c1;
00014   limits_[3] = a2;
00015   limits_[4] = b2;
00016   limits_[5] = c2;
00017 }
00018 
00019 GridInterpolator3DException::~GridInterpolator3DException() throw() {}
00020 
00021 const char* 
00022 GridInterpolator3DException::what() const throw() { return "LinearGridInterpolator3D: field requested outside of grid validity";}