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