Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2008, 7:53:40 PM (16 years ago)
Author:
rgrieder
Message:
  • removed struct ObjectListBase::Export from the forward declarations (not allowed for nested classes, but were possible with the use of a template..)
  • moved Error from core to util (since Debug.h has moved too)
File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/util/Error.cc

    r1605 r1606  
    3333
    3434#include "Error.h"
    35 #include "util/Debug.h"
     35#include "Debug.h"
    3636
    3737namespace orxonox
     
    3939        Error::Error(std::string errorMsg, int errorCode)
    4040        {
    41                 COUT(1) << "############################ "<< std::endl
    42                                                         << "#         Error "<<errorCode<< "          #"<< std::endl
    43                                                         << "############################ "<< std::endl
    44                                                         << "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;
    4545
    46                 if (errorMsg=="")
     46                if (errorMsg == "")
    4747                {
    4848                        switch (errorCode)
     
    5151                                        errorMsg = "Some error!";
    5252                                        break;
     53
    5354                                default:
    5455                                        errorMsg = "Unknown error!";
    5556                        }
    5657                }
    57                 COUT(1) << errorMsg << std::endl<< std::endl;
     58                COUT(1) << errorMsg << std::endl << std::endl;
    5859        }
    5960}
Note: See TracChangeset for help on using the changeset viewer.