DecodingError.Context

  • struct Context

The context in which the error occurred.

Initializers

init init(codingPath:debugDescription:underlyingError:) Required

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

  • parameter codingPath: The path of coding keys taken to get to the point of the failing decode call.
  • parameter debugDescription: A description of what went wrong, for debugging purposes.
  • parameter underlyingError: The underlying error which caused this error, if any.

Declaration

Instance Variables

let codingPath Required

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

Declaration

let debugDescription Required

A description of what went wrong, for debugging purposes.

Declaration

let underlyingError Required

The underlying error which caused this error, if any.

Declaration

  • let underlyingError: Error?