Changeset 423 for code/branches/FICN/src/orxonox
- Timestamp:
- Dec 5, 2007, 9:20:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Error.cc
r421 r423 15 15 Error::Error(int errorCode, std::string errorMsg) 16 16 { 17 std::cout << "Orxonox Error: "; 18 19 if (errorMsg!="") 17 std::cout << "############################ "<< std::endl 18 << "# Error "<<errorCode<< " #"<< std::endl 19 << "############################ "<< std::endl 20 << "An error occured in Orxonox: "<< std::endl; 21 22 if (errorMsg=="") 20 23 { 21 std::cout << errorMsg;22 }23 else24 {25 std::string msg;26 24 switch (errorCode) 27 25 { 28 26 case 1: 29 msg = "General error";27 errorMsg = "Some error!"; 30 28 break; 31 29 default: 32 msg = "Unknown error!";30 errorMsg = "Unknown error!"; 33 31 } 34 std::cout << msg;35 32 } 36 std::cout << " (Code " << errorCode << ")"<< std::endl<< std::endl;33 std::cout << errorMsg << std::endl<< std::endl; 37 34 } 38 35 }
Note: See TracChangeset
for help on using the changeset viewer.