Changeset 1638 for code/branches/gui/src/core/Error.cc
- Timestamp:
- Jul 20, 2008, 7:49:26 PM (17 years ago)
- Location:
- code/branches/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui
-
Property
svn:mergeinfo
set to
/code/branches/input merged eligible
-
Property
svn:mergeinfo
set to
-
code/branches/gui/src/core/Error.cc
r1505 r1638 37 37 namespace orxonox 38 38 { 39 40 41 42 43 44 39 Error::Error(std::string errorMsg, int errorCode) 40 { 41 COUT(1) << "############################ "<< std::endl 42 << "# Error "<<errorCode<< " #"<< std::endl 43 << "############################ "<< std::endl 44 << "An error occured in Orxonox: "<< std::endl; 45 45 46 47 48 49 50 51 52 53 54 55 56 57 58 46 if (errorMsg=="") 47 { 48 switch (errorCode) 49 { 50 case 1: 51 errorMsg = "Some error!"; 52 break; 53 default: 54 errorMsg = "Unknown error!"; 55 } 56 } 57 COUT(1) << errorMsg << std::endl<< std::endl; 58 } 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.