00001 #ifndef __MATH_EXCEPT_HPP__ 00002 #define __MATH_EXCEPT_HPP__ 00003 00004 namespace math { 00005 namespace except { 00006 class domain: public std::exception { 00007 public: 00008 domain() {} 00009 ~domain() throw() {} 00010 const char* what() const throw() { return "math domain error"; } 00011 00012 private: 00013 }; 00014 } 00015 } 00016 00017 #endif 00018
1.6.1