---
title: "didFinishEnumeratingChangesWithError(_:)"
framework: ContactProvider
role: symbol
role_heading: Instance Method
platforms: [iOS 18.0+, iPadOS 18.0+]
path: "contactprovider/contactitemchangeobserver/didfinishenumeratingchangeswitherror(_:)"
---

# didFinishEnumeratingChangesWithError(_:)

Finishes the change enumeration with an error, indicating failure, to the observer.

## Declaration

```swift
func didFinishEnumeratingChangesWithError(_: any Error)
```

## Discussion

Discussion Use ContactProviderError.changeAnchorExpired to restart the content enumeration.

## See Also

### Ending enumeration

- [didFinishEnumeratingChanges(upTo:moreComing:)](contactprovider/contactitemchangeobserver/didfinishenumeratingchanges(upto:morecoming:).md)
- [ContactItemSyncAnchor](contactprovider/contactitemsyncanchor.md)
