*err=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASICompressionErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Compression of %@ failed because we were to create a file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,nil]];
*err=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASICompressionErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Compression of %@ failed the file does not exist",sourcePath],NSLocalizedDescriptionKey,nil]];
*err=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASICompressionErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed because we were to create a file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,nil]];
*err=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASICompressionErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed the file does not exist",sourcePath],NSLocalizedDescriptionKey,nil]];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIInternalErrorWhileBuildingRequestTypeuserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"No file exists at %@",data],NSLocalizedDescriptionKey,nil]]];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIFileManagementErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Failed to get attributes for file at path '%@'",path],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIFileManagementErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Failed to get attributes for file at path '%@'",[selftemporaryFileDownloadPath]],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]];
fileError=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIFileManagementErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Failed to move file from '%@' to '%@'",[selftemporaryFileDownloadPath],[selfdownloadDestinationPath]],NSLocalizedDescriptionKey,moveError,NSUnderlyingErrorKey,nil]];
fileError=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIFileManagementErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Failed to move file from '%@' to '%@'",[selftemporaryFileDownloadPath],[selfdownloadDestinationPath]],NSLocalizedDescriptionKey,moveError,NSUnderlyingErrorKey,nil]];
*err=[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIFileManagementErroruserInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Failed to delete file at path '%@'",path],NSLocalizedDescriptionKey,removeError,NSUnderlyingErrorKey,nil]];
saveContext=xmlSaveToFd([[NSFileHandlefileHandleForWritingAtPath:tempPath]fileDescriptor],NULL,2);// 2 == XML_SAVE_NO_DECL, this isn't declared on Mac OS 10.5