ErrorContext

public struct ErrorContext<E> where E : Error
extension ErrorContext : Error

ErrorContext encapsulates all of the available debugging information about an function in a Link.

  • The subject of an error captured by a Link. The subject is the A value of the failing link, which is usually either the receiver or the first argument of the Link function.

    Declaration

    Swift

    public let subject: Any
  • The error which this context encapsulates.

    Declaration

    Swift

    public let error: E
  • A represention of the path of Links which result in the erroring Link.

    Declaration

    Swift

    public let trace: AsyncTrace