---
title: "finishedHandlingError(_:recovered:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidocument/finishedhandlingerror(_:recovered:)"
---

# finishedHandlingError(_:recovered:)

Tells UIKit that you finished handling the error.

## Declaration

```swift
func finishedHandlingError(_ error: any Error, recovered: Bool)
```

## Parameters

- `error`: An error object encapsulating information about the error.
- `recovered`: doc://com.apple.documentation/documentation/Swift/true if you recovered from the error, otherwise doc://com.apple.documentation/documentation/Swift/false.

## Discussion

Discussion This method is called by default when handling of an error (including any user interaction) is complete. Subclasses need to call this method only if they override handleError(_:userInteractionPermitted:) and do not call the superclass implementation (super). If you override this method, you must call super.

## See Also

### Resolving conflicts and handling errors

- [handleError(_:userInteractionPermitted:)](uikit/uidocument/handleerror(_:userinteractionpermitted:).md)
- [userInteractionNoLongerPermitted(forError:)](uikit/uidocument/userinteractionnolongerpermitted(forerror:).md)
