20 instantiations of AggregateException
mscorlib (12)
system\AggregateException.cs (2)
378
throw new
AggregateException
(Message, unhandledExceptions);
435
return new
AggregateException
(Message, flattenedExceptions);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
1025
edi = ExceptionDispatchInfo.Capture(new
AggregateException
(exception, postException));
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1048
throw new
AggregateException
(exceptions.ToArray());
system\threading\CancellationTokenSource.cs (1)
839
throw new
AggregateException
(exceptionList);
system\threading\Tasks\Parallel.cs (1)
347
throw new
AggregateException
(exceptionQ);
system\threading\Tasks\Task.cs (3)
2114
return new
AggregateException
(canceledException);
5158
throw new
AggregateException
(exceptions);
5279
throw new
AggregateException
(exceptions);
system\threading\Tasks\TaskExceptionHolder.cs (3)
136
AggregateException exceptionToThrow = new
AggregateException
(
385
return new
AggregateException
(exceptions);
395
return new
AggregateException
(combinedExceptions);
System.Core (8)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
144
throw new
AggregateException
(ex);
182
throw new
AggregateException
(ex);
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
88
throw new
AggregateException
(ex);
System\Linq\Parallel\Utils\ExceptionAggregator.cs (1)
123
throw new
AggregateException
(ex);
System\Linq\ParallelEnumerable.cs (4)
1643
throw new
AggregateException
(e);
1780
throw new
AggregateException
(e);
5027
throw new
AggregateException
(ex);
5129
throw 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.
314
AggregateException
backAsAggregate = this;
318
backAsAggregate = 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.
394
public
AggregateException
Flatten()
400
List<
AggregateException
> exceptionsToFlatten = new List<
AggregateException
>();
419
AggregateException
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)
635
var
ignored = t.Exception;
system\threading\Tasks\Parallel.cs (6)
330
AggregateException
ae = e as
AggregateException
;
388
catch (
AggregateException
aggExp)
1277
catch (
AggregateException
aggExp)
1590
catch (
AggregateException
aggExp)
3484
catch (
AggregateException
aggExp)
system\threading\Tasks\Task.cs (5)
1399
/// <see cref="System.
AggregateException
"/> in calls to <see cref="Wait()">Wait</see>
1403
public
AggregateException
Exception
1407
AggregateException
e = null;
2051
private
AggregateException
GetExceptions(bool includeTaskCanceledExceptions)
5290
AggregateException
ex = t.GetExceptions(true);
system\threading\Tasks\TaskExceptionHolder.cs (5)
112
AggregateException
aggExp = exp as
AggregateException
;
115
AggregateException
flattenedAggExp = aggExp.Flatten();
136
AggregateException
exceptionToThrow = new AggregateException(
373
internal
AggregateException
CreateExceptionObject(bool calledFromFinalizer, Exception includeThisException)
system\threading\Tasks\TaskScheduler.cs (3)
736
private
AggregateException
m_exception;
744
public UnobservedTaskExceptionEventArgs(
AggregateException
exception) { m_exception = exception; }
760
public
AggregateException
Exception { get { return m_exception; } }
System (2)
net\System\Net\WebSockets\WebSocketBase.cs (2)
1357
AggregateException
aggregateException = exception as
AggregateException
;
System.Core (3)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
69
if (!(ex is
AggregateException
))
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
115
catch (
AggregateException
ae)
117
AggregateException
flattenedAE = ae.Flatten();
System.Data (4)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
4637
catch (
AggregateException
e) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
145
catch (
AggregateException
ex)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
156
catch (
AggregateException
ae) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2904
catch (
AggregateException
ae) {
System.ServiceModel (7)
System\ServiceModel\Channels\WebSocketHelper.cs (3)
256
AggregateException
aggregationException = ex as
AggregateException
;
303
internal static Exception ConvertAggregateExceptionToCommunicationException(
AggregateException
ex)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
698
catch (
AggregateException
ex)
894
catch (
AggregateException
ex)
1416
catch(
AggregateException
ex)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
97
AggregateException
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)
47
AggregateException
aggregateException = exception as
AggregateException
;
66
AggregateException
aggregateException = exception as
AggregateException
;
105
public 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>
126
public Exception AsError<TPreferredException>(
AggregateException
aggregateException, string eventSource)
System\Runtime\Fx.cs (2)
222
else if (exception is
AggregateException
)
227
ReadOnlyCollection<Exception> innerExceptions = ((
AggregateException
)exception).InnerExceptions;
System\Runtime\TaskExtensions.cs (3)
123
catch (
AggregateException
ex)
135
catch (
AggregateException
ex)
154
catch (
AggregateException
ex)
System.Web (2)
Compilation\BuildProvidersCompiler.cs (2)
221
catch (
AggregateException
ae) {
791
catch (
AggregateException
e) {