TypeDecodingError

public struct TypeDecodingError : Error

An Error type indicating a problem during decoding by the TypeDecoder.

This type provides additional guidance for Decodable types that do not conform to either the ValidSingleCodingValueProvider or ValidKeyedCodingValueProvider protocols, suggesting that conformance may enable successful decoding.

  • A description of the error and the underlying error, which is of type DecodingError.

    Declaration

    Swift

    public let context: DecodingError.Context