20 instantiations of AggregateException
mscorlib (12)
system\AggregateException.cs (2)
378throw new AggregateException(Message, unhandledExceptions); 435return new AggregateException(Message, flattenedExceptions);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
1025edi = ExceptionDispatchInfo.Capture(new AggregateException(exception, postException));
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1048throw new AggregateException(exceptions.ToArray());
system\threading\CancellationTokenSource.cs (1)
839throw new AggregateException(exceptionList);
system\threading\Tasks\Parallel.cs (1)
347throw new AggregateException(exceptionQ);
system\threading\Tasks\Task.cs (3)
2114return new AggregateException(canceledException); 5158throw new AggregateException(exceptions); 5279throw new AggregateException(exceptions);
system\threading\Tasks\TaskExceptionHolder.cs (3)
136AggregateException exceptionToThrow = new AggregateException( 385return new AggregateException(exceptions); 395return new AggregateException(combinedExceptions);
System.Core (8)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
144throw new AggregateException(ex); 182throw new AggregateException(ex);
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
88throw new AggregateException(ex);
System\Linq\Parallel\Utils\ExceptionAggregator.cs (1)
123throw new AggregateException(ex);
System\Linq\ParallelEnumerable.cs (4)
1643throw new AggregateException(e); 1780throw new AggregateException(e); 5027throw new AggregateException(ex); 5129throw new AggregateException(ex);
88 references to AggregateException
mscorlib (51)
system\AggregateException.cs (29)
31/// <see cref="AggregateException"/> is used to consolidate multiple failures into a single, throwable 42/// Initializes a new instance of the <see cref="AggregateException"/> class. 51/// Initializes a new instance of the <see cref="AggregateException"/> class with 62/// Initializes a new instance of the <see cref="AggregateException"/> class with a specified error 81/// Initializes a new instance of the <see cref="AggregateException"/> class with 95/// Initializes a new instance of the <see cref="AggregateException"/> class with 109/// Initializes a new instance of the <see cref="AggregateException"/> class with a specified error 126/// Initializes a new instance of the <see cref="AggregateException"/> class with a specified error 176/// Initializes a new instance of the <see cref="AggregateException"/> class with 192/// Initializes a new instance of the <see cref="AggregateException"/> class with a specified error 255/// Initializes a new instance of the <see cref="AggregateException"/> class with serialized data. 306/// Returns the <see cref="System.AggregateException"/> that is the root cause of this exception. 314AggregateException backAsAggregate = this; 318backAsAggregate = back as AggregateException; 335/// cref="AggregateException"/>. 343/// unhandled, all unhandled exceptions will be put into a new <see cref="AggregateException"/> 348/// <exception cref="AggregateException">An exception contained by this <see 349/// cref="AggregateException"/> was not handled.</exception> 384/// Flattens an <see cref="AggregateException"/> instances into a single, new instance. 386/// <returns>A new, flattened <see cref="AggregateException"/>.</returns> 389/// <see cref="AggregateException"/>, this method will recursively flatten all of them. The 390/// inner exceptions returned in the new <see cref="AggregateException"/> 392/// <see cref="AggregateException"/> instance. 394public AggregateException Flatten() 400List<AggregateException> exceptionsToFlatten = new List<AggregateException>(); 419AggregateException currentInnerAsAggregate = currentInnerException as AggregateException; 439/// Creates and returns a string representation of the current <see cref="AggregateException"/>.
system\threading\CancellationTokenSource.cs (2)
348/// However, this overload of Cancel will aggregate any exceptions thrown into a <see cref="System.AggregateException"/>, 381/// exceptions thrown into a <see cref="System.AggregateException"/>,
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
635var ignored = t.Exception;
system\threading\Tasks\Parallel.cs (6)
330AggregateException ae = e as AggregateException; 388catch (AggregateException aggExp) 1277catch (AggregateException aggExp) 1590catch (AggregateException aggExp) 3484catch (AggregateException aggExp)
system\threading\Tasks\Task.cs (5)
1399/// <see cref="System.AggregateException"/> in calls to <see cref="Wait()">Wait</see> 1403public AggregateException Exception 1407AggregateException e = null; 2051private AggregateException GetExceptions(bool includeTaskCanceledExceptions) 5290AggregateException ex = t.GetExceptions(true);
system\threading\Tasks\TaskExceptionHolder.cs (5)
112AggregateException aggExp = exp as AggregateException; 115AggregateException flattenedAggExp = aggExp.Flatten(); 136AggregateException exceptionToThrow = new AggregateException( 373internal AggregateException CreateExceptionObject(bool calledFromFinalizer, Exception includeThisException)
system\threading\Tasks\TaskScheduler.cs (3)
736private AggregateException m_exception; 744public UnobservedTaskExceptionEventArgs(AggregateException exception) { m_exception = exception; } 760public AggregateException Exception { get { return m_exception; } }
System (2)
net\System\Net\WebSockets\WebSocketBase.cs (2)
1357AggregateException aggregateException = exception as AggregateException;
System.Core (3)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
69if (!(ex is AggregateException))
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
115catch (AggregateException ae) 117AggregateException flattenedAE = ae.Flatten();
System.Data (4)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
4637catch (AggregateException e) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
145catch (AggregateException ex)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
156catch (AggregateException ae) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2904catch (AggregateException ae) {
System.ServiceModel (7)
System\ServiceModel\Channels\WebSocketHelper.cs (3)
256AggregateException aggregationException = ex as AggregateException; 303internal static Exception ConvertAggregateExceptionToCommunicationException(AggregateException ex)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
698catch (AggregateException ex) 894catch (AggregateException ex) 1416catch(AggregateException ex)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
97AggregateException ae = null;
System.ServiceModel.Discovery (6)
System\ServiceModel\Discovery\AnnouncementClient.cs (2)
390[Fx.Tag.Throws(typeof(AggregateException), "Inherits from Task exception contract")] 396[Fx.Tag.Throws(typeof(AggregateException), "Inherits from Task exception contract")]
System\ServiceModel\Discovery\DiscoveryClient.cs (4)
424[Fx.Tag.Throws(typeof(AggregateException), "Inherits from the Task exception contract.")] 430[Fx.Tag.Throws(typeof(AggregateException), "Inherits from the Task exception contract.")] 445[Fx.Tag.Throws(typeof(AggregateException), "Inherits from the Task exception contract.")] 451[Fx.Tag.Throws(typeof(AggregateException), "Inherits from the Task exception contract.")]
System.ServiceModel.Internals (13)
System\Runtime\ExceptionTrace.cs (8)
47AggregateException aggregateException = exception as AggregateException; 66AggregateException aggregateException = exception as AggregateException; 105public Exception AsError<TPreferredException>(AggregateException aggregateException) 112/// from the <see cref="AggregateException"/> if one is present. 122/// <param name="aggregateException">The <see cref="AggregateException"/> to examine.</param> 126public Exception AsError<TPreferredException>(AggregateException aggregateException, string eventSource)
System\Runtime\Fx.cs (2)
222else if (exception is AggregateException) 227ReadOnlyCollection<Exception> innerExceptions = ((AggregateException)exception).InnerExceptions;
System\Runtime\TaskExtensions.cs (3)
123catch (AggregateException ex) 135catch (AggregateException ex) 154catch (AggregateException ex)
System.Web (2)
Compilation\BuildProvidersCompiler.cs (2)
221catch (AggregateException ae) { 791catch (AggregateException e) {