EncodingError
An error that occurs during the encoding of a value.
enum EncodingError
Citizens in Swift
Conformances
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Members
case invalidValue(Any, EncodingError.Context)
An indication that an encoder or its containers could not encode the given value.
struct Context
The context in which the error occurred.
Available in Foundation
Conformances
protocol LocalizedError
Describes an error that provides localized messages describing why an error occurred and provides more information about the error.