<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocument/finishedHandlingError(_:recovered:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocument(im)finishedHandlingError:recovered:"
  },
  "title" : "finishedHandlingError(_:recovered:)"
}
-->

# finishedHandlingError(_:recovered:)

Tells UIKit that you finished handling the error.

```
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

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:)`](/documentation/UIKit/UIDocument/handleError(_:userInteractionPermitted:)) and do not call the superclass implementation (`super`). If you override this method, you must call `super`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)