- Timestamp:
- 11/20/07 23:45:14 (1 year ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/trunk/Sources_Common/Calendar_Store/Clients/CLocalCalendarClient.cpp
r19 r143 263 263 if (__mkdir(fpath, S_IRWXU)) 264 264 { 265 int _errno = os_errno;265 int my_errno = os_errno; 266 266 //throw CGeneralException(_errno, "Could not create directory"); 267 throw CGeneralException( _errno);267 throw CGeneralException(my_errno); 268 268 } 269 269 } … … 275 275 else 276 276 { 277 int _errno = os_errno;277 int my_errno = os_errno; 278 278 //throw CGeneralException(_errno, "Could not create calendar file"); 279 throw CGeneralException( _errno);279 throw CGeneralException(my_errno); 280 280 } 281 281 … … 320 320 if (::delete_dir(fpath) != 0) 321 321 { 322 int _errno = os_errno;322 int my_errno = os_errno; 323 323 //throw CGeneralException(_errno, "Could not delete directory"); 324 throw CGeneralException( _errno);324 throw CGeneralException(my_errno); 325 325 } 326 326 } … … 336 336 if (::remove_utf8(fpath) != 0) 337 337 { 338 int _errno = os_errno;338 int my_errno = os_errno; 339 339 //throw CGeneralException(_errno, "Could not delete calendar file"); 340 throw CGeneralException( _errno);340 throw CGeneralException(my_errno); 341 341 } 342 342 … … 383 383 if (::rename_utf8(fpath_old, fpath_new) != 0) 384 384 { 385 int _errno = os_errno;385 int my_errno = os_errno; 386 386 //throw CGeneralException(_errno, "Could not rename directory"); 387 throw CGeneralException( _errno);387 throw CGeneralException(my_errno); 388 388 } 389 389 } … … 406 406 if (::rename_utf8(fpath_old, fpath_new) != 0) 407 407 { 408 int _errno = os_errno;408 int my_errno = os_errno; 409 409 //throw CGeneralException(_errno, "Could not rename calendar file"); 410 throw CGeneralException( _errno);410 throw CGeneralException(my_errno); 411 411 } 412 412 … … 498 498 if (::stat_utf8(fpath, &finfo)) 499 499 { 500 int err_no = os_errno;501 CLOG_LOGTHROW(CGeneralException, err_no);502 throw CGeneralException( err_no);500 int my_errno = os_errno; 501 CLOG_LOGTHROW(CGeneralException, my_errno); 502 throw CGeneralException(my_errno); 503 503 } 504 504 else