Instance Propertyswift 6.0.3Swift
debugDescription
A description of what went wrong, for debugging purposes.
let debugDescription: String
A description of what went wrong, for debugging purposes.
let debugDescription: String
import Swift
struct Context
The context in which the error occurred.
enum EncodingError
An error that occurs during the encoding of a value.
@frozen struct String
A Unicode string value that is a collection of characters.
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 underlyingError: (any Error)?
The underlying error which caused this error, if any.