00001
00002
00004
00005 #if !defined(AFX_SQUAREROOTEXCEPTION_H__39C90240_1ED1_47F5_B7FF_563D931A5028__INCLUDED_)
00006 #define AFX_SQUAREROOTEXCEPTION_H__39C90240_1ED1_47F5_B7FF_563D931A5028__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "ArithmeticException.h"
00013
00015
00016 class SquareRootException : public ArithmeticException
00017 {
00018 public:
00019
00020 SquareRootException() throw();
00021
00022 SquareRootException(std::string sElementName,double dValue) throw();
00023
00024 SquareRootException(std::string sElementName,double dValue,std::string sOrigin,std::string sFilename,unsigned int iLineNumber) throw();
00025
00026 virtual ~SquareRootException() throw();
00027
00028
00029 virtual std::string makeDescription();
00030
00031 virtual std::string makeReason();
00032
00033 virtual std::string makeOrigin(std::string sOrigin);
00034 private :
00035
00036 std::string _sElementName;
00037
00038 double _dValue;
00039 };
00040
00041 #endif // !defined(AFX_SQUAREROOTEXCEPTION_H__39C90240_1ED1_47F5_B7FF_563D931A5028__INCLUDED_)