struct EncodingError.Context The context in which the error occurred. Import import Swift Initializers init(codingPath:debugDescription:underlyingError:) Creates a new context with the given path of coding keys and a description of what went wrong. codingPath: The path of coding keys taken to get to the point of the failing encode call. debugDescription: A description of what went wrong, for debugging purposes. underlyingError: The underlying error which caused this error, if any. Declaration init(codingPath: [CodingKey], debugDescription: String, underlyingError: Error? = default) Instance Variables var codingPath: [CodingKey] The path of coding keys taken to get to the point of the failing encode call. Declaration var codingPath: [CodingKey] { get } var debugDescription: String A description of what went wrong, for debugging purposes. Declaration var debugDescription: String { get } var underlyingError: Error? The underlying error which caused this error, if any. Declaration var underlyingError: Error? { get }