Structureswift 6.0.3Swift
Context
The context in which the error occurred.
struct Context
The context in which the error occurred.
struct Context
import Swift
enum EncodingError
An error that occurs during the encoding of a value.
protocol Sendable
init(codingPath: [any CodingKey], debugDescription: String, underlyingError: (any Error)? = nil)
Creates a new context with the given path of coding keys and a description of what went wrong.
let codingPath: [any 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: (any Error)?
The underlying error which caused this error, if any.