NIOCompositeError

public struct NIOCompositeError : Error

An Error that represents multiple errors that occurred during an operation.

Because SwiftNIO frequently does multiple jobs at once, it is possible some operations out of a set of operations may fail. This is most noticeable with Channel.flush on the DatagramChannel, where some, but not all, of the datagram writes may fail. In this case the flush should accurately represent that set of possibilities. The NIOCompositeError is an attempt to do so.

  • Undocumented

    Declaration

    Swift

    public init(comprising errors: [Error])
  • Declaration

    Swift

    public func makeIterator() -> Array<Error>.Iterator
  • Declaration

    Swift

    public var endIndex: Index { get }
  • Declaration

    Swift

    public var startIndex: Index { get }
  • Declaration

    Swift

    public var indices: Indices { get }
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }