Changeset 1664 for code/branches/gui/src/core/Exception.cc
- Timestamp:
- Aug 21, 2008, 9:23:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Exception.cc
r1638 r1664 52 52 { } 53 53 54 std::stringException::getFullDescription() const54 const std::string& Exception::getFullDescription() const 55 55 { 56 std::ostringstream fullDesc; 56 if (fullDescription_ == "") 57 { 58 std::ostringstream fullDesc; 57 59 58 fullDesc << this->getTypeName() << "_EXCEPTION";60 fullDesc << this->getTypeName() << "_EXCEPTION"; 59 61 60 if (this->fileName_ != "") 61 { 62 fullDesc << " in " << this->fileName_; 63 if (this->lineNumber_) 64 fullDesc << "(" << this->lineNumber_ << ")"; 62 if (this->fileName_ != "") 63 { 64 fullDesc << " in " << this->fileName_; 65 if (this->lineNumber_) 66 fullDesc << "(" << this->lineNumber_ << ")"; 67 } 68 69 if (this->functionName_ != "") 70 fullDesc << " in function '" << this->functionName_ << "'"; 71 72 fullDesc << ": "; 73 if (this->description_ != "") 74 fullDesc << this->description_; 75 else 76 fullDesc << "No description available."; 77 78 this->fullDescription_ = std::string(fullDesc.str()); 65 79 } 66 80 67 if (this->functionName_ != "") 68 fullDesc << " in function '" << this->functionName_ << "'"; 69 70 fullDesc << ": "; 71 if (this->description_ != "") 72 fullDesc << this->description_; 73 else 74 fullDesc << "No description available."; 75 76 return fullDesc.str(); 81 return fullDescription_; 77 82 } 78 83
Note: See TracChangeset
for help on using the changeset viewer.