Structure

EncodingError.Context

The context in which the error occurred.

Declaration

struct EncodingError.Context

Topics

Initializers

init(codingPath: [CodingKey], debugDescription: String, underlyingError: Error?)

Creates a new context with the given path of coding keys and a description of what went wrong.

Instance Properties

let codingPath: [CodingKey]

The path of coding keys taken to get to the point of the failing encode call.

let debugDescription: String

A description of what went wrong, for debugging purposes.

let underlyingError: Error?

The underlying error which caused this error, if any.