AggregateError

public struct AggregateError : Error, CustomStringConvertible, LocalizedError, Equatable

Error that can contain one to many errors.

  • Declaration

    Swift

    public static func == (lhs: AggregateError, rhs: AggregateError) -> Bool

Properties

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Declaration

    Swift

    public var errors: [Error]

Lifecycle

  • Declaration

    Swift

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

    Swift

    public init(_ error: Error)

Methods

  • Declaration

    Swift

    public mutating func append(_ error: Error)