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


Public Member Functions | |
| FileNotFoundException () throw () | |
| Default constructor. | |
| FileNotFoundException (std::string sNameOfTheFile, std::string sOrigin, std::string sFileName, unsigned int iLineNumber) throw () | |
This constructor requires 4 parameters :
| |
| virtual | ~FileNotFoundException () throw () |
| Destructor. | |
| virtual std::string | makeDescription () |
| The description message provides by the file not found exception. | |
| virtual std::string | makeReason () |
| The reason message provides by the file not found exception. | |
| virtual std::string | makeOrigin (std::string sOrigin) |
| The origin message provides by the file not found exception. | |
ModelId=43834AC101C1
Definition at line 20 of file FileNotFoundException.h.
|
|
Default constructor.
Definition at line 16 of file FileNotFoundException.cpp.
|
|
||||||||||||||||||||
|
This constructor requires 4 parameters :
Definition at line 34 of file FileNotFoundException.cpp. 00035 { 00036 00037 setNameOfTheFile(sNameOfTheFile); 00038 00039 setLineNumber(iLineNumber); 00040 setFileName(sFileName); 00041 setType("FileNotFoundException"); 00042 00043 setDescription(makeDescription()); 00044 setReason(makeReason()); 00045 setOrigin(makeOrigin(sOrigin)); 00046 }
|
|
|
Destructor.
Definition at line 23 of file FileNotFoundException.cpp.
|
|
|
The description message provides by the file not found exception.
Implements FileException. Definition at line 52 of file FileNotFoundException.cpp. References FileException::getNameOfTheFile(). 00053 { 00054 std::string sExceptionMessage = "Can't open or read "; 00055 sExceptionMessage+= "'"; 00056 sExceptionMessage+= getNameOfTheFile(); 00057 sExceptionMessage+= "'"; 00058 sExceptionMessage+= " file !!! "; 00059 00060 return sExceptionMessage; 00061 }
Here is the call graph for this function: ![]() |
|
|
The origin message provides by the file not found exception.
Implements FileException. Definition at line 76 of file FileNotFoundException.cpp. References Exception::getFileName(), Exception::getLineNumber(), and ltos(). 00077 { 00078 std::string sOriginMessage = getFileName(); 00079 sOriginMessage+= " (l:"; 00080 sOriginMessage+= ltos(getLineNumber()); 00081 sOriginMessage+= ") "; 00082 sOriginMessage+= sOrigin; 00083 00084 return sOriginMessage; 00085 }
Here is the call graph for this function: ![]() |
|
|
The reason message provides by the file not found exception.
Implements FileException. Definition at line 65 of file FileNotFoundException.cpp. References Exception::getType(). 00066 { 00067 std::string sReasonMessage = "FILE_READ_ERROR --> "; 00068 sReasonMessage+= getType(); 00069 00070 return sReasonMessage; 00071 }
Here is the call graph for this function: ![]() |
1.4.5