---
title: "finishEnumeratingWithError(_:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileproviderchangeobserver/finishenumeratingwitherror(_:)"
---

# finishEnumeratingWithError(_:)

Tells the observer that an error occurred during change notification.

## Declaration

```swift
func finishEnumeratingWithError(_ error: any Error)
```

## Parameters

- `error`: An object that contains information about the error.

## See Also

### Observing Changes

- [didDeleteItems(withIdentifiers:)](fileprovider/nsfileproviderchangeobserver/diddeleteitems(withidentifiers:).md)
- [didUpdate(_:)](fileprovider/nsfileproviderchangeobserver/didupdate(_:).md)
- [finishEnumeratingChanges(upTo:moreComing:)](fileprovider/nsfileproviderchangeobserver/finishenumeratingchanges(upto:morecoming:).md)
- [suggestedBatchSize](fileprovider/nsfileproviderchangeobserver/suggestedbatchsize.md)
