- Timestamp:
- 04/06/10 01:23:22 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/system/ossie/framework/FileSystem_impl.cpp
r9924 r9980 35 35 #endif 36 36 37 #if BOOST_VERSION < 103 49937 #if BOOST_VERSION < 103500 38 38 # include <boost/filesystem/cerrno.hpp> 39 #elif BOOST_VERSION < 10379940 # include <boost/cerrno.hpp>41 39 #else 42 # warning "unknown boost version"43 40 # include <boost/cerrno.hpp> 44 41 #endif … … 120 117 121 118 fs::copy_file(sFile, dFile); 122 #if BOOST_VERSION < 103499123 119 } catch (const fs::filesystem_error &ex) { 120 #if BOOST_VERSION < 103400 121 if (ex.error() == fs::not_found_error) 122 #elif BOOST_VERSION < 103500 124 123 if (ex.system_error() == ENOENT) 124 #else 125 if (ex.code().value() == ENOENT) 126 #endif 125 127 throw CF::FileException(CF::CFENOENT, ex.what()); 126 #elif BOOST_VERSION < 103799127 } catch (const boost::system::system_error &ex ) {128 if (ex.code().value() == ENOENT)129 throw CF::FileException(CF::CFENOENT, ex.what());130 #else131 } catch (const boost::system::system_error &ex ) {132 throw CF::FileException(CF::CFENOENT, ex.what());133 #endif134 128 } 135 129 } … … 197 191 } 198 192 DEBUG(4, FileSystem, "About to return from list."); 199 #if BOOST_VERSION < 103499200 193 } catch (const fs::filesystem_error &ex) { 194 #if BOOST_VERSION < 103400 195 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.error()); 196 if (ex.error() == fs::other_error) 197 #elif BOOST_VERSION < 103500 201 198 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.system_error()); 202 203 199 if (ex.system_error() == EINVAL) 204 throw CF::InvalidFileName(CF::CFEINVAL, ex.what()); 205 #elif BOOST_VERSION < 103799 206 } catch (const boost::system::system_error &ex) { 200 #else 207 201 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.code().value()); 208 202 if (ex.code().value() == EINVAL) 203 #endif 209 204 throw CF::InvalidFileName(CF::CFEINVAL, ex.what()); 210 #else211 } catch (const boost::system::system_error &ex) {212 205 throw CF::FileException(CF::CFNOTSET, ex.what()); 213 #endif214 206 } 215 207 DEBUG(4, FileSystem, "Leaving recursiveList")