<PackageReference Include="Microsoft.Bcl" Version="1.1.9" />

System.AggregateException

public class AggregateException : Exception
Represents one or more errors that occur during application execution.

Gets a read-only collection of the Exception instances that caused the current exception.

Initializes a new instance of the AggregateException class.

public AggregateException(string message)

Initializes a new instance of the AggregateException class with a specified error message.

public AggregateException(string message, Exception innerException)

Initializes a new instance of the AggregateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public AggregateException(IEnumerable<Exception> innerExceptions)

Initializes a new instance of the AggregateException class with references to the inner exceptions that are the cause of this exception.

public AggregateException(Exception[] innerExceptions)

Initializes a new instance of the AggregateException class with references to the inner exceptions that are the cause of this exception.

public AggregateException(string message, IEnumerable<Exception> innerExceptions)

Initializes a new instance of the AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception.

public AggregateException(string message, Exception[] innerExceptions)

Initializes a new instance of the AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception.

Flattens an AggregateException instances into a single, new instance.

public void Handle(Func<Exception, bool> predicate)

Invokes a handler on each Exception contained by this AggregateException.