LocalizedAlertCustomError
struct LocalizedAlertCustomError: LocalizedError
Create a custom LocalizedError
Note
This is to wrap aNSError
into the modern world
-
Init the struct
Declaration
Swift
init( errorDescription: String? = nil, recoverySuggestion: String? = nil, failureReason: String? = nil, helpAnchor: String? = nil )
-
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?