#include <ParseException.h>
Inherits FileException.
Inheritance diagram for ParseException:


Public Member Functions | |
| ParseException () throw () | |
| Default constructor. | |
| ParseException (std::string sElementName) throw () | |
This constructor requires 1 parameter :
| |
| ParseException (std::string sElementName, std::string sOrigin, std::string sFileName, unsigned int iLineNumber) throw () | |
This constructor requires 4 parameters :
| |
| virtual | ~ParseException () throw () |
| Destructor. | |
| virtual std::string | makeDescription () |
| The message provides by the parse exception. | |
| virtual std::string | makeReason () |
| The reason message provides by the parse exception. | |
| virtual std::string | makeOrigin (std::string sOrigin) |
| The origin message provides by the parse exception. | |
Private Attributes | |
| std::string | _sElementName |
Definition at line 19 of file ParseException.h.
|
|
Default constructor.
Definition at line 16 of file ParseException.cpp.
|
|
|
This constructor requires 1 parameter :
Definition at line 31 of file ParseException.cpp. 00031 : _sElementName(sElementName) 00032 { 00033 setType("NullPointerException"); 00034 setLineNumber(0); 00035 setFileName(""); 00036 00037 setDescription(makeDescription()); 00038 setReason(makeReason()); 00039 setOrigin(""); 00040 00041 }
|
|
||||||||||||||||||||
|
This constructor requires 4 parameters :
ModelId=43834ABF00BD Definition at line 49 of file ParseException.cpp. 00049 : _sElementName(sElementName) 00050 { 00051 setType("ParseException"); 00052 setLineNumber(iLineNumber); 00053 setFileName(sFileName); 00054 00055 setDescription(makeDescription()); 00056 setReason(makeReason()); 00057 setOrigin(makeOrigin(sOrigin)); 00058 }
|
|
|
Destructor.
Definition at line 22 of file ParseException.cpp.
|
|
|
The message provides by the parse exception.
Implements FileException. Definition at line 63 of file ParseException.cpp. References _sElementName. 00064 { 00065 std::string sExceptionMessage = "The parsing of "; 00066 sExceptionMessage+= _sElementName; 00067 sExceptionMessage+= " encountered an problem !!!"; 00068 return sExceptionMessage; 00069 }
|
|
|
The origin message provides by the parse exception.
Implements FileException. Definition at line 84 of file ParseException.cpp. References Exception::getFileName(), Exception::getLineNumber(), and ltos(). 00085 { 00086 std::string sOriginMessage = getFileName(); 00087 sOriginMessage+= " (l:"; 00088 sOriginMessage+= ltos(getLineNumber()); 00089 sOriginMessage+= ") "; 00090 sOriginMessage+= sOrigin; 00091 00092 return sOriginMessage; 00093 }
Here is the call graph for this function: ![]() |
|
|
The reason message provides by the parse exception.
Implements FileException. Definition at line 74 of file ParseException.cpp. References Exception::getType(). 00075 { 00076 std::string sReasonMessage = "FILE_READ_ERROR --> "; 00077 sReasonMessage+= getType(); 00078 00079 return sReasonMessage; 00080 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 40 of file ParseException.h. Referenced by makeDescription(). |
1.4.5