AggregateException
A .NET exception that bundles several exceptions together in its InnerExceptions list.
In more detail
It usually appears when several parallel operations fail together. When several tasks passed to Task.WhenAll fail, await rethrows only the first, but the combined task's Exception property holds every failure as an AggregateException.
Related terms
- Task.WhenAll — A .NET method that returns one task which completes when all the tasks you pass it have completed.
- exception — An error object a program raises to stop normal flow and report that something went wrong.
- Task — The .NET type representing an operation that may still be running and will eventually complete with a result, an exception or cancellation.
Taught in
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices