00001 #ifndef SCT_MATHSERROR_H 00002 #define SCT_MATHSERROR_H 00003 00004 namespace Sct { 00005 00012 class MathsError : public Error { 00013 public: 00017 MathsError(const string& msg, const string& file, int line) throw() { 00018 initialize("MATHS_ERROR", "Sct::MathsError", msg, 0, file, line); 00019 } 00020 00025 MathsError(Throwable& cause, const string& file, int line) throw() { 00026 initialize("MATHS_ERROR", "Sct::MathsError", "", &cause, file, line); 00027 } 00028 00032 MathsError(const string& msg, Throwable& cause, const string& file, int line) throw() { 00033 initialize("MATHS_ERROR", "Sct::MathsError", msg, &cause, file, line); 00034 } 00035 00036 protected: 00037 MathsError() throw() {} 00038 }; 00039 } 00040 #endif //SCT_MATHSERROR_H