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


Public Member Functions | |
| DivideByZeroException () throw () | |
| Default constructor. | |
| DivideByZeroException (std::string sExpressionToCompute, std::string sZeroValue) throw () | |
This constructor requires 2 parameters :
| |
| DivideByZeroException (std::string sExpressionToCompute, std::string sZeroValue, std::string sOrigin, std::string sFileName, unsigned int iLineNumber) throw () | |
This constructor requires 5 parameters :
| |
| virtual | ~DivideByZeroException () throw () |
| Destructor. | |
| virtual std::string | makeDescription () |
| The description message provides by the divide by zero exception. | |
| virtual std::string | makeReason () |
| The reason message provides by the divide by zero exception. | |
| virtual std::string | makeOrigin (std::string sOrigin) |
| The origin message provides by the divide by zero exception. | |
Private Attributes | |
| std::string | _sExpressionToCompute |
| std::string | _sZeroValue |
Definition at line 19 of file DivideByZeroException.h.
|
|
Default constructor.
Definition at line 16 of file DivideByZeroException.cpp.
|
|
||||||||||||
|
This constructor requires 2 parameters :
Definition at line 32 of file DivideByZeroException.cpp. 00032 : _sExpressionToCompute(sExpressionToCompute),_sZeroValue(sZeroValue) 00033 { 00034 setLineNumber(0); 00035 setFileName(""); 00036 setType("DivideByZeroException"); 00037 00038 setDescription(makeDescription()); 00039 setReason(makeReason()); 00040 setOrigin(""); 00041 00042 }
|
|
||||||||||||||||||||||||
|
This constructor requires 5 parameters :
ModelId=43834AC102CC Definition at line 51 of file DivideByZeroException.cpp. 00051 : _sExpressionToCompute(sExpressionToCompute),_sZeroValue(sZeroValue) 00052 { 00053 setLineNumber(iLineNumber); 00054 setFileName(sFileName); 00055 setType("DivideByZeroException"); 00056 00057 setDescription(makeDescription()); 00058 setReason(makeReason()); 00059 setOrigin(makeOrigin(sOrigin)); 00060 }
|
|
|
Destructor.
Definition at line 23 of file DivideByZeroException.cpp.
|
|
|
The description message provides by the divide by zero exception.
Implements ArithmeticException. Definition at line 64 of file DivideByZeroException.cpp. References _sExpressionToCompute, and _sZeroValue. 00065 { 00066 std::string sExceptionMessage = "Computing of the "; 00067 sExceptionMessage+= _sExpressionToCompute; 00068 sExceptionMessage+= " not possible due to "; 00069 sExceptionMessage+= _sZeroValue; 00070 sExceptionMessage+= " equal to zero"; 00071 00072 return sExceptionMessage; 00073 }
|
|
|
The origin message provides by the divide by zero exception.
Implements ArithmeticException. Definition at line 88 of file DivideByZeroException.cpp. References Exception::getFileName(), Exception::getLineNumber(), and ltos(). 00089 { 00090 std::string sOriginMessage = getFileName(); 00091 sOriginMessage+= " (l:"; 00092 sOriginMessage+= ltos(getLineNumber()); 00093 sOriginMessage+= ") "; 00094 sOriginMessage+= sOrigin; 00095 00096 return sOriginMessage; 00097 }
Here is the call graph for this function: ![]() |
|
|
The reason message provides by the divide by zero exception.
Implements ArithmeticException. Definition at line 77 of file DivideByZeroException.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 41 of file DivideByZeroException.h. Referenced by makeDescription(). |
|
|
Definition at line 43 of file DivideByZeroException.h. Referenced by makeDescription(). |
1.4.5