<!--
{
  "documentType" : "article",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelSession/GenerationError/LocalizedError-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "LocalizedError Implementations"
}
-->

# LocalizedError Implementations

## Topics

### Instance Properties

[`var errorDescription: String?`](/documentation/FoundationModels/LanguageModelSession/GenerationError/errorDescription)

A string representation of the error description.

[`var failureReason: String?`](/documentation/FoundationModels/LanguageModelSession/GenerationError/failureReason)

A string representation of the failure reason.

[`var recoverySuggestion: String?`](/documentation/FoundationModels/LanguageModelSession/GenerationError/recoverySuggestion)

A string representation of the recovery suggestion.

---

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)