Structureswift-package-manager 6.0.3Basics
UnderlyingError
Observability.swift:551struct UnderlyingError
struct UnderlyingError
import Basics
struct ObservabilityMetadata
Provides type-safe access to the ObservabilityMetadata’s values. This API should ONLY be used inside of accessor implementations.
init()
var count: Int { get }
The number of items in the baggage.
var debugDescription: String { get }
var isEmpty: Bool { get }
A Boolean value that indicates whether the baggage is empty.
var underlyingError: Error? { get set }
subscript<Key>(key: Key.Type) -> Key.Value? where Key : ObservabilityMetadataKey { get set }
func forEach(_ body: (AnyKey, Sendable) throws -> Void) rethrows
Iterate through all items in this ObservabilityMetadata
by invoking the given closure for each item.
func merging(_ other: ObservabilityMetadata) -> ObservabilityMetadata
struct AnyKey
A type-erased ObservabilityMetadataKey
used when iterating through the ObservabilityMetadata
using its forEach
method.
typealias Key = ObservabilityMetadataKey
var legacyDiagnosticLocation: DiagnosticLocationWrapper? { get set }
struct DiagnosticLocationWrapper
protocol CustomStringConvertible
A type with a customized textual representation.
init(_ underlying: Error)
var description: String { get }