EnumerationSwift
EncodingError
An error that occurs during the encoding of a value.
enum EncodingError
An error that occurs during the encoding of a value.
enum EncodingError
case invalidValue(Any, EncodingError.Context)
An indication that an encoder or its containers could not encode the given value.
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 localizedDescription: String
Retrieve the localized description for this error.
var recoverySuggestion: String?
A localized message describing how one might recover from the failure.
struct Context
The context in which the error occurred.