Protocol
LocalizedError
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
A specialized error that provides localized messages describing the error and why it occurred.
protocol LocalizedError : Error
Topics
Instance Properties
var errorDescription: String?A localized message describing what error occurred.var failureReason: String?A localized message describing the reason for the failure.var helpAnchor: String?A localized message providing “help” text if the user requests help.var recoverySuggestion: String?A localized message describing how one might recover from the failure.
Relationships
Inherits From
Swift.ErrorSwift.SendableSwift.SendableMetatype
Conforming Types
DecodingErrorEncodingErrorJWTError