Enumerationswift 6.0.1Swift
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
import Swift
case invalidValue(Any, EncodingError.Context)
An indication that an encoder or its containers could not encode the given value.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
struct Context
The context in which the error occurred.
import FoundationEssentials
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol LocalizedError : Error
Describes an error that provides localized messages describing why an error occurred and provides more information about the error.
var errorDescription: String? { get }
var failureReason: String? { get }
var helpAnchor: String? { get }
var recoverySuggestion: String? { get }
import Foundation
var localizedDescription: String { get }
Retrieve the localized description for this error.