---
title: localizedDescription
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nserror/localizeddescription
---

# localizedDescription

A string containing the localized description of the error.

## Declaration

```swift
var localizedDescription: String { get }
```

## Discussion

Discussion The object in the user info dictionary for the key NSLocalizedDescriptionKey. If the user info dictionary doesn’t contain a value for NSLocalizedDescriptionKey, a default string is constructed from the domain and code.

## See Also

### Related Documentation

- [domain](foundation/nserror/domain.md)
- [code](foundation/nserror/code.md)
- [userInfo](foundation/nserror/userinfo.md)

### Getting a Localized Error Description

- [localizedRecoveryOptions](foundation/nserror/localizedrecoveryoptions.md)
- [localizedRecoverySuggestion](foundation/nserror/localizedrecoverysuggestion.md)
- [localizedFailureReason](foundation/nserror/localizedfailurereason.md)
