#include <InfinityException.h>
Inherits ArithmeticException.
Inheritance diagram for InfinityException:


Public Member Functions | |
| InfinityException () throw () | |
| Default constructor. | |
| InfinityException (std::string sExpressionToCompute, std::string sZeroValue) throw () | |
This constructor requires 2 parameters :
| |
| InfinityException (std::string sExpressionToCompute, std::string sInfinityValue, std::string sOrigin, std::string sFileName, unsigned int iLineNumber) throw () | |
This constructor requires 5 parameters :
| |
| virtual | ~InfinityException () throw () |
| Destructor. | |
| virtual std::string | makeDescription () |
| The description message provides by the infinity exception. | |
| virtual std::string | makeReason () |
| The reason message provides by the infinity exception. | |
| virtual std::string | makeOrigin (std::string sOrigin) |
| The origin message provides by the infinity exception. | |
Private Attributes | |
| std::string | _sExpressionToCompute |
| std::string | _sInfinityValue |
Definition at line 15 of file InfinityException.h.
|
|
Default constructor.
Definition at line 15 of file InfinityException.cpp.
|
|
||||||||||||
|
This constructor requires 2 parameters :
Definition at line 29 of file InfinityException.cpp. 00029 : 00030 _sExpressionToCompute(sExpressionToCompute),_sInfinityValue(sInfinityValue) 00031 { 00032 setLineNumber(0); 00033 setFileName(""); 00034 setType("InfinityException"); 00035 00036 setDescription(makeDescription()); 00037 setReason(makeReason()); 00038 setOrigin(""); 00039 00040 }
|
|
||||||||||||||||||||||||
|
This constructor requires 5 parameters :
Definition at line 48 of file InfinityException.cpp. 00052 : 00053 _sExpressionToCompute(sExpressionToCompute),_sInfinityValue(sInfinityValue) 00054 { 00055 setLineNumber(iLineNumber); 00056 setFileName(sFileName); 00057 setType("InfinityException"); 00058 00059 setDescription(makeDescription()); 00060 setReason(makeReason()); 00061 setOrigin(makeOrigin(sOrigin)); 00062 }
|
|
|
Destructor.
Definition at line 21 of file InfinityException.cpp.
|
|
|
The description message provides by the infinity exception.
Implements ArithmeticException. Definition at line 65 of file InfinityException.cpp. References _sExpressionToCompute, and _sInfinityValue. 00066 { 00067 std::string sExceptionMessage = "Computing of the "; 00068 sExceptionMessage+= _sExpressionToCompute; 00069 sExceptionMessage+= " make "; 00070 sExceptionMessage+= _sInfinityValue; 00071 sExceptionMessage+= " equal to infinity"; 00072 00073 return sExceptionMessage; 00074 }
|
|
|
The origin message provides by the infinity exception.
Implements ArithmeticException. Definition at line 87 of file InfinityException.cpp. References Exception::getFileName(), Exception::getLineNumber(), and ltos(). 00088 { 00089 std::string sOriginMessage = getFileName(); 00090 sOriginMessage+= " (l:"; 00091 sOriginMessage+= ltos(getLineNumber()); 00092 sOriginMessage+= ") "; 00093 sOriginMessage+= sOrigin; 00094 00095 return sOriginMessage; 00096 }
Here is the call graph for this function: ![]() |
|
|
The reason message provides by the infinity exception.
Implements ArithmeticException. Definition at line 77 of file InfinityException.cpp. References Exception::getType(). 00078 { 00079 std::string sReasonMessage = "OPERATION_NOT_ALLOWED --> "; 00080 sReasonMessage+= getType(); 00081 00082 return sReasonMessage; 00083 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 37 of file InfinityException.h. Referenced by makeDescription(). |
|
|
Definition at line 38 of file InfinityException.h. Referenced by makeDescription(). |
1.4.5