00001 // Exception.cpp: implementation of the Exception class. 00002 // 00004 00005 #ifdef WIN32 00006 #pragma warning(disable:4786) 00007 #endif 00008 #include "Exception.h" 00009 00011 // Construction/Destruction 00013 00015 //##ModelId=43834AC10221 00016 Exception::Exception() throw() 00017 { 00018 00019 } 00020 00022 //##ModelId=43834AC10222 00023 Exception::~Exception() throw() 00024 { 00025 00026 } 00027 00029 //##ModelId=43834AC10236 00030 std::string Exception::getReason() 00031 { 00032 return _sReason; 00033 } 00034 00036 //##ModelId=43834AC10238 00037 string Exception::getDescription() 00038 { 00039 return _sDescription; 00040 } 00041 00043 //##ModelId=43834AC1023E 00044 string Exception::getOrigin() 00045 { 00046 return _sOrigin; 00047 } 00048 00050 //##ModelId=43834AC10240 00051 unsigned int Exception::getLineNumber() 00052 { 00053 return _iLineNumber; 00054 } 00055 00057 //##ModelId=43834AC10242 00058 std::string Exception::getFileName() 00059 { 00060 return _sFileName; 00061 } 00062 00064 //##ModelId=43834AC10244 00065 std::string Exception::getType() 00066 { 00067 return _sType; 00068 } 00069 00071 //##ModelId=43834AC10246 00072 void Exception::setReason(std::string sReason) 00073 { 00074 _sReason = sReason; 00075 } 00076 00078 //##ModelId=43834AC10249 00079 void Exception::setDescription(std::string sDescription) 00080 { 00081 _sDescription = sDescription; 00082 } 00083 00085 //##ModelId=43834AC1024F 00086 void Exception::setOrigin(std::string sOrigin) 00087 { 00088 _sOrigin = sOrigin; 00089 } 00090 00092 //##ModelId=43834AC10252 00093 void Exception::setLineNumber(unsigned int iLineNumber) 00094 { 00095 _iLineNumber = iLineNumber; 00096 } 00097 00099 //##ModelId=43834AC10255 00100 void Exception::setFileName(std::string sFileName) 00101 { 00102 _sFileName = sFileName; 00103 } 00104 00106 //##ModelId=43834AC10258 00107 void Exception::setType(std::string sType) 00108 { 00109 _sType = sType; 00110 } 00111 00112 00113
1.4.5