---
title: localizedRecoveryOptions
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nserror/localizedrecoveryoptions
---

# localizedRecoveryOptions

An array containing the localized titles of buttons appropriate for displaying in an alert panel.

## Declaration

```swift
var localizedRecoveryOptions: [String]? { get }
```

## Discussion

Discussion The object in the user info dictionary for the key NSLocalizedRecoveryOptionsErrorKey. If the user info dictionary doesn’t contain a value for NSLocalizedRecoveryOptionsErrorKey, this property is nil. The first string is the title of the right-most and default button, the second the one to the left of that, and so on. The recovery options should be appropriate for the  localizedRecoverySuggestion property. If the user info dictionary doesn’t contain a value for NSLocalizedRecoveryOptionsErrorKey, only an OK button is displayed.

## See Also

### Getting a Localized Error Description

- [localizedDescription](foundation/nserror/localizeddescription.md)
- [localizedRecoverySuggestion](foundation/nserror/localizedrecoverysuggestion.md)
- [localizedFailureReason](foundation/nserror/localizedfailurereason.md)
