Enumerationswift 6.1.2Swift
EncodingError
An error that occurs during the encoding of a value.
enum EncodingErrorAn error that occurs during the encoding of a value.
enum EncodingErrorimport Swiftcase invalidValue(Any, EncodingError.Context)An indication that an encoder or its containers could not encode the given value.
protocol Error : SendableA type representing an error value that can be thrown.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
struct ContextThe context in which the error occurred.