Changeset 2161 for code/branches/objecthierarchy/src/core/Loader.cc
- Timestamp:
- Nov 9, 2008, 4:28:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/Loader.cc
r2019 r2161 37 37 #include "Namespace.h" 38 38 #include "util/Debug.h" 39 #include "util/Exception.h" 39 40 40 41 #include "tinyxml/ticpp.h" … … 157 158 return true; 158 159 } 159 catch(ticpp::Exception& ex) 160 catch (ticpp::Exception& ex) 161 { 162 COUT(1) << std::endl; 163 COUT(1) << "An XML-error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl; 164 COUT(1) << ex.what() << std::endl; 165 COUT(1) << "Loading aborted." << std::endl; 166 return false; 167 } 168 catch (Exception& ex) 169 { 170 COUT(1) << std::endl; 171 COUT(1) << "A loading-error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl; 172 COUT(1) << ex.what() << std::endl; 173 COUT(1) << "Loading aborted." << std::endl; 174 return false; 175 } 176 catch (std::exception& ex) 160 177 { 161 178 COUT(1) << std::endl; 162 179 COUT(1) << "An error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl; 163 180 COUT(1) << ex.what() << std::endl; 181 COUT(1) << "Loading aborted." << std::endl; 182 return false; 183 } 184 catch (...) 185 { 186 COUT(1) << std::endl; 187 COUT(1) << "An unknown error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl; 164 188 COUT(1) << "Loading aborted." << std::endl; 165 189 return false;
Note: See TracChangeset
for help on using the changeset viewer.