ErrorHandling

public protocol ErrorHandling

Protocol describing common error handling behavior.

  • B

    The outbound type of an implmementing Link

    Declaration

    Swift

    associatedtype B
  • setErrorHandler(_:) Default implementation

    Set the error handling function for the receiver.

    Default Implementation

    Set the error handling function for the receiver.

    Declaration

    Swift

    func setErrorHandler(_ errorHandler: @escaping (ErrorContext) -> Void ) -> Link<B>

    Parameters

    errorHandler

    a function which takes an ErrorContext. The context contains all available debug information on the erroring function, including the error itself.

    Return Value

    A Link which has errorHandler installed