00001 #ifndef SCT_MATHSERROR_H 00002 #define SCT_MATHSERROR_H 00003 00004 #include "Sct/Exception.h" 00005 00006 namespace Sct { 00007 00014 class MathsError : public Error { 00015 public: 00019 MathsError(const string& msg, const string& file, int line) throw() { 00020 initialize("MATHS_ERROR", "Sct::MathsError", msg, 0, file, line); 00021 } 00022 00027 MathsError(Throwable& cause, const string& file, int line) throw() { 00028 initialize("MATHS_ERROR", "Sct::MathsError", "", &cause, file, line); 00029 } 00030 00034 MathsError(const string& msg, Throwable& cause, const string& file, int line) throw() { 00035 initialize("MATHS_ERROR", "Sct::MathsError", msg, &cause, file, line); 00036 } 00037 00038 protected: 00039 MathsError() throw() {} 00040 }; 00041 } 00042 #endif //SCT_MATHSERROR_H