---
title: localizedRecoverySuggestion
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nserror/localizedrecoverysuggestion
---

# localizedRecoverySuggestion

A string containing the localized recovery suggestion for the error.

## Declaration

```swift
var localizedRecoverySuggestion: String? { get }
```

## Discussion

Discussion The object in the user info dictionary for the key NSLocalizedRecoverySuggestionErrorKey. If the user info dictionary doesn’t contain a value for NSLocalizedRecoverySuggestionErrorKey, this property is nil. The returned string is suitable for displaying as the secondary message in an alert panel.

## See Also

### Getting a Localized Error Description

- [localizedDescription](foundation/nserror/localizeddescription.md)
- [localizedRecoveryOptions](foundation/nserror/localizedrecoveryoptions.md)
- [localizedFailureReason](foundation/nserror/localizedfailurereason.md)
