---
title: recoveryAttempter
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nserror/recoveryattempter
---

# recoveryAttempter

The object in the user info dictionary corresponding to the NSRecoveryAttempterErrorKey key.

## Declaration

```swift
var recoveryAttempter: Any? { get }
```

## Discussion

Discussion The recovery attempter must be an instance of a class that conforms to the NSSecureCoding and NSErrorRecoveryAttempting protocols. It must also be able to correctly interpret an index in the localizedRecoveryOptions property. If userInfo doesn’t contain a value for NSRecoveryAttempterErrorKey, this property is nil.

## See Also

### Related Documentation

- [localizedRecoveryOptions](foundation/nserror/localizedrecoveryoptions.md)

### Getting the Error Recovery Attempter

- [NSErrorRecoveryAttempting](foundation/nserrorrecoveryattempting.md)
