Constructors
-
Exception
Aggregator() Initializes a new instance of the ExceptionAggregator class. -
Exception
Aggregator(Exception Initializes a new instance of the ExceptionAggregator class that contains the exception list of its parent.Aggregator)
Methods
- Add(Exception) Adds an exception to the aggregator.
-
Aggregate(Exception
Aggregator) Adds exceptions from another aggregator into this aggregator. - Clear() Clears the aggregator.
- Run(Action) Runs the code, catching the exception that is thrown and adding it to the aggregate.
-
Run
Async(Func<Task>) Runs the code, catching the exception that is thrown and adding it to the aggregate. -
Run
Async``1(Func<Task<``0>>) Runs the code, catching the exception that is thrown and adding it to the aggregate. -
To
Exception() Returns an exception that represents the exceptions thrown by the code passed to the Run(System.Action) or RunAsync(System.Func{System.Threading.Tasks.Task}) method.
Properties
-
Has
Exceptions Returns true if the aggregator has at least one exception inside it.