failureReason
TypeScriptget failureReason(): (string) | nullSwift declarationvar failureReason: String? { get }A string representation of the failure reason.
enum · iOS 26.0+ · Deprecated in iOS 27.0 · SDK 27.1
enum GenerationErrorAn error that may occur while generating a response. @DeprecationSummary { Use ``LanguageModelError``, ``SystemLanguageModel/Error``, or ``LanguageModelSession/Error`` instead. Apps built with Xcode 26 will continue to catch this error until you rebuild with Xcode 27. You must update to Xcode 27 to catch the new error types before submitting your app. }
get failureReason(): (string) | nullSwift declarationvar failureReason: String? { get }A string representation of the failure reason.
get errorDescription(): (string) | nullSwift declarationvar errorDescription: String? { get }A string representation of the error description.
get recoverySuggestion(): (string) | nullSwift declarationvar recoverySuggestion: String? { get }A string representation of the recovery suggestion.
No declarations were skipped in this snapshot.