An error that occurs during the encoding of a value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
enum EncodingError
An error that occurs during the encoding of a value.
SDK
Framework
enum EncodingError
case invalidValue (Any, EncodingError.Context)
An indication that an encoder or its containers could not encode the given value.
struct EncodingError.Context
The context in which the error occurred.
protocol Encoder
A type that can encode values into a native format for external representation.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
enum DecodingError
An error that occurs during the decoding of a value.