AggregateException constructor

AggregateException({
  1. String? message,
  2. Iterable<Exception>? innerExceptions,
})

Initializes a new instance of the AggregateException class with a specified error message and a reference to the inner exceptions.

Implementation

AggregateException({
  String? message,
  Iterable<Exception>? innerExceptions,
})  : _message = message ?? 'One or more errors occurred.',
      _innerExceptions = innerExceptions?.toList() ?? [];