Changeset 1606 for code/branches/core3/src/util/Error.cc
- Timestamp:
- Jun 16, 2008, 7:53:40 PM (16 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/Error.cc
r1605 r1606 33 33 34 34 #include "Error.h" 35 #include " util/Debug.h"35 #include "Debug.h" 36 36 37 37 namespace orxonox … … 39 39 Error::Error(std::string errorMsg, int errorCode) 40 40 { 41 COUT(1) << "############################ " << std::endl42 << "# Error "<<errorCode<< " #"<< std::endl43 << "############################ "<< std::endl44 << "An error occured in Orxonox: "<< std::endl;41 COUT(1) << "############################ " << std::endl 42 << "# Error " << errorCode << " #" << std::endl 43 << "############################ " << std::endl 44 << "An error occured in Orxonox: " << std::endl; 45 45 46 if (errorMsg =="")46 if (errorMsg == "") 47 47 { 48 48 switch (errorCode) … … 51 51 errorMsg = "Some error!"; 52 52 break; 53 53 54 default: 54 55 errorMsg = "Unknown error!"; 55 56 } 56 57 } 57 COUT(1) << errorMsg << std::endl << std::endl;58 COUT(1) << errorMsg << std::endl << std::endl; 58 59 } 59 60 }
Note: See TracChangeset
for help on using the changeset viewer.