LocalizedAlertError
struct LocalizedAlertError: LocalizedError
Wrap an Error
into a LocalizedError
This to avoid an error: Protocol ‘LocalizedError’ as a type cannot conform to the protocol itself
-
The underlying error
Declaration
Swift
let underlyingError: LocalizedError
-
The error description
Declaration
Swift
var errorDescription: String?
-
The recovery suggestion
Declaration
Swift
var recoverySuggestion: String?
-
The failure reason
Declaration
Swift
var failureReason: String?
-
The help anchor
Declaration
Swift
var helpAnchor: String?
-
Init the struct
Declaration
Swift
init?(error: Error?)