Lines Matching defs:error

56 #define CallCopyErrProc(userRoutine, error, failedOperation, srcVRefNum, srcDirID, srcName, dstVRefNum, dstDirID, dstName) \
57 (*(userRoutine))((error), (failedOperation), (srcVRefNum), (srcDirID), (srcName), (dstVRefNum), (dstDirID), (dstName))
105 CopyErrProcPtr errorHandler; /* pointer to error handling function */
107 OSErr error; /* temporary holder of results - saves 2 bytes of stack each level */
108 Boolean bailout; /* set to true to by error handling function if fatal error */
190 theGlobals->result = noErr; /* clear error return on way back */
251 OSErr error;
255 error = XGetVolumeInfoNoName(NULL, dstVRefNum, &pb);
256 if ( error == noErr )
284 return ( error );
303 theGlobals->error = PBGetCatInfoSync(&theGlobals->myCPB);
305 if ( theGlobals->error == noErr )
318 theGlobals->error = DirCreate(theGlobals->destinationVRefNum, dstDirID, theGlobals->itemName, &newDirID);
319 if ( theGlobals->error == noErr )
336 theGlobals->error = CopyFileMgrAttributes(theGlobals->myCPB.dirInfo.ioVRefNum, currentSrcDirID, NULL, theGlobals->destinationVRefNum, newDirID, NULL, true);
339 if ( theGlobals->error != noErr )
343 theGlobals->bailout = CallCopyErrProc(theGlobals->errorHandler, theGlobals->error, copyDirFMAttributesOp,
349 /* If you don't handle the errors with an error handler, */
356 else /* error handling for DirCreate */
360 theGlobals->bailout = CallCopyErrProc(theGlobals->errorHandler, theGlobals->error, dirCreateOp,
366 /* If you don't handle the errors with an error handler, */
374 /* clear error return on way back if we aren't bailing out */
375 theGlobals->error = noErr;
382 theGlobals->error = FileCopy(theGlobals->myCPB.hFileInfo.ioVRefNum,
394 if ( theGlobals->error != noErr )
398 theGlobals->bailout = CallCopyErrProc(theGlobals->errorHandler, theGlobals->error, fileCopyOp,
403 /* If the CopyErrProc handled the problem, clear the error here */
404 theGlobals->error = noErr;
409 /* If you don't handle the errors with an error handler, */
418 { /* error handling for PBGetCatInfo */
420 if ( theGlobals->error != fnfErr )
424 theGlobals->bailout = CallCopyErrProc(theGlobals->errorHandler, theGlobals->error, getNextItemOp,
428 /* If the CopyErrProc handled the problem, clear the error here */
429 theGlobals->error = noErr;
434 /* If you don't handle the errors with an error handler, */
441 } while ( (theGlobals->error == noErr) && (!theGlobals->bailout) ); /* time to fall back a level? */
500 error condition is detected during the copy, or
501 nil if you don't want to handle error conditions.
502 If you don't handle error conditions, the first
503 error will cause the copy to quit and
504 DirectoryCopy will return the error.
511 noErr 0 No error
522 ioErr -36 I/O error
570 OSErr error;
596 error = GetDirectoryID(srcVRefNum, srcDirID, srcName, &srcDirID, &isDirectory);
597 if ( error != noErr )
603 error = dirNFErr;
614 error = noErr;
619 error = GetDirectoryID(dstVRefNum, dstDirID, dstName, &dstDirID, &isDirectory);
620 if ( error != noErr )
626 error = dirNFErr;
632 error = DetermineVRefNum(srcName, srcVRefNum, &srcVRefNum);
633 if ( error != noErr )
637 error = DetermineVRefNum(dstName, dstVRefNum, &dstVRefNum);
638 if ( error != noErr )
645 error = PreflightDirectoryCopySpace(srcVRefNum, srcDirID, dstVRefNum, copyFilterProc, &spaceOK);
646 if ( error != noErr )
652 error = dskFulErr; /* not enough room on destination */
664 error = GetDirName(srcVRefNum, srcDirID, srcDirName);
665 if ( error != noErr )
681 error = GetDirName(dstVRefNum, fsRtDirID, oldDiskName);
682 if ( error == noErr )
688 error = HRename(dstVRefNum, fsRtParID, oldDiskName, srcDirName);
695 error = DirCreate(dstVRefNum, dstDirID, srcDirName, &dstDirID);
697 if ( error != noErr )
702 if ( CallCopyErrProc(copyErrHandler, error, dirCreateOp,
710 /* If the CopyErrProc handled the problem, clear the error here */
712 error = noErr;
717 /* If you don't handle the errors with an error handler, */
737 error = theGlobals.error; /* get the result */
746 error = CopyFileMgrAttributes(srcVRefNum, srcDirID, NULL,
750 if ( (error != noErr) && (copyErrHandler != NULL) )
752 theGlobals.bailout = CallCopyErrProc(copyErrHandler, error, copyDirFMAttributesOp,
765 return ( error );