AggregateException class

Represents one or more errors that occur during application execution.

This exception aggregates multiple exceptions that occurred during a parallel or sequential operation. All inner exceptions are preserved for debugging and error analysis.

Implemented types

Constructors

AggregateException({String? message, Iterable<Exception>? innerExceptions})
Initializes a new instance of the AggregateException class with a specified error message and a reference to the inner exceptions.
AggregateException.from(Iterable<Exception> exceptions)
Creates an AggregateException from a collection of exceptions.
factory

Properties

count int
Gets the number of inner exceptions.
no setter
hashCode int
The hash code for this object.
no setterinherited
innerExceptions List<Exception>
Gets a read-only collection of the Exception instances that caused the current exception.
no setter
message String
Gets the error message and information about the inner exceptions.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flatten() AggregateException
Flattens all inner AggregateException instances into a single AggregateException.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited