1 instantiation of ExceptionDispatchInfo
mscorlib (1)
system\runtime\exceptionservices\exceptionservicescommon.cs (1)
109
return new
ExceptionDispatchInfo
(source);
83 references to ExceptionDispatchInfo
mscorlib (52)
system\AggregateException.cs (7)
186
internal AggregateException(IEnumerable<
ExceptionDispatchInfo
> innerExceptionInfos) :
204
internal AggregateException(string message, IEnumerable<
ExceptionDispatchInfo
> innerExceptionInfos)
207
: this(message, innerExceptionInfos as IList<
ExceptionDispatchInfo
> ??
209
(List<
ExceptionDispatchInfo
>)null :
210
new List<
ExceptionDispatchInfo
>(innerExceptionInfos)))
226
private AggregateException(string message, IList<
ExceptionDispatchInfo
> innerExceptionInfos)
242
var
edi = innerExceptionInfos[i];
system\exception.cs (1)
808
internal void RestoreExceptionDispatchInfo(System.Runtime.ExceptionServices.
ExceptionDispatchInfo
exceptionDispatchInfo)
system\io\stream.cs (2)
996
private
ExceptionDispatchInfo
_exceptionInfo;
1013
_exceptionInfo =
ExceptionDispatchInfo
.Capture(ex);
system\Lazy.cs (2)
83
internal
ExceptionDispatchInfo
m_edi;
86
m_edi =
ExceptionDispatchInfo
.Capture(ex);
system\runtime\compilerservices\AsyncMethodBuilder.cs (5)
1010
var
edi =
ExceptionDispatchInfo
.Capture(exception);
1018
targetContext.Post(state => ((
ExceptionDispatchInfo
)state).Throw(), edi);
1025
edi =
ExceptionDispatchInfo
.Capture(new AggregateException(exception, postException));
1034
ThreadPool.QueueUserWorkItem(state => ((
ExceptionDispatchInfo
)state).Throw(), edi);
system\runtime\compilerservices\TaskAwaiter.cs (1)
173
var
oceEdi = task.GetCancellationExceptionDispatchInfo();
system\runtime\exceptionservices\exceptionservicescommon.cs (1)
102
public static
ExceptionDispatchInfo
Capture(Exception source)
system\threading\Tasks\Future.cs (2)
587
(exceptionObject is
ExceptionDispatchInfo
) || (exceptionObject is IEnumerable<
ExceptionDispatchInfo
>),
system\threading\Tasks\Task.cs (9)
2121
internal ReadOnlyCollection<
ExceptionDispatchInfo
> GetExceptionDispatchInfos()
2127
new ReadOnlyCollection<
ExceptionDispatchInfo
>(new
ExceptionDispatchInfo
[0]);
2132
internal
ExceptionDispatchInfo
GetCancellationExceptionDispatchInfo()
6132
List<
ExceptionDispatchInfo
> observedExceptions = null;
6146
if (observedExceptions == null) observedExceptions = new List<
ExceptionDispatchInfo
>();
6377
List<
ExceptionDispatchInfo
> observedExceptions = null;
6391
if (observedExceptions == null) observedExceptions = new List<
ExceptionDispatchInfo
>();
7283
ExceptionDispatchInfo
oceEdi;
system\threading\Tasks\TaskCompletionSource.cs (1)
213
internal bool TrySetException(IEnumerable<
ExceptionDispatchInfo
> exceptions)
system\threading\Tasks\TaskContinuation.cs (3)
857
var
edi =
ExceptionDispatchInfo
.Capture(exc);
858
ThreadPool.QueueUserWorkItem(s => ((
ExceptionDispatchInfo
)s).Throw(), edi);
system\threading\Tasks\TaskExceptionHolder.cs (18)
51
private volatile List<
ExceptionDispatchInfo
> m_faultExceptions;
53
private
ExceptionDispatchInfo
m_cancellationException;
109
foreach (
ExceptionDispatchInfo
edi in m_faultExceptions)
192
exceptionObject is
ExceptionDispatchInfo
|| exceptionObject is IEnumerable<
ExceptionDispatchInfo
>,
222
m_cancellationException =
ExceptionDispatchInfo
.Capture(oce);
226
var
edi = exceptionObject as
ExceptionDispatchInfo
;
247
if (exceptions == null) m_faultExceptions = exceptions = new List<
ExceptionDispatchInfo
>(1);
254
exceptions.Add(
ExceptionDispatchInfo
.Capture(exception));
259
var
edi = exceptionObject as
ExceptionDispatchInfo
;
279
exceptions.Add(
ExceptionDispatchInfo
.Capture(exc));
288
var ediColl = exceptionObject as IEnumerable<
ExceptionDispatchInfo
>;
403
internal ReadOnlyCollection<
ExceptionDispatchInfo
> GetExceptionDispatchInfos()
409
return new ReadOnlyCollection<
ExceptionDispatchInfo
>(exceptions);
419
internal
ExceptionDispatchInfo
GetCancellationExceptionDispatchInfo()
421
var
edi = m_cancellationException;
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
159
ExceptionDispatchInfo
.Capture(ae.InnerException).Throw();
System.Web (30)
AspNetSynchronizationContext.cs (2)
46
internal override
ExceptionDispatchInfo
ExceptionDispatchInfo {
153
_state.Helper.Error =
ExceptionDispatchInfo
.Capture(ex);
AspNetSynchronizationContextBase.cs (2)
26
ExceptionDispatchInfo
dispatchInfo = ExceptionDispatchInfo;
30
internal abstract
ExceptionDispatchInfo
ExceptionDispatchInfo { get; }
Compilation\BuildProvidersCompiler.cs (2)
222
ExceptionDispatchInfo
.Capture(ae.GetBaseException()).Throw();
792
ExceptionDispatchInfo
.Capture(e.GetBaseException()).Throw();
Hosting\ApplicationManager.cs (1)
954
ExceptionDispatchInfo
customLoaderException = ProcessHost.GetExistingCustomLoaderFailureAndClear(appId);
Hosting\AsyncResultBase.cs (3)
27
private volatile
ExceptionDispatchInfo
_error;
85
_error =
ExceptionDispatchInfo
.Capture(error);
92
internal
ExceptionDispatchInfo
Error { get { return _error; } }
Hosting\ProcessHost.cs (7)
286
private static KeyValuePair<string,
ExceptionDispatchInfo
> _customLoaderStartupError;
1175
internal static
ExceptionDispatchInfo
GetExistingCustomLoaderFailureAndClear(string appId) {
1178
_customLoaderStartupError = default(KeyValuePair<string,
ExceptionDispatchInfo
>);
1186
private static void SetCustomLoaderFailure(string appId,
ExceptionDispatchInfo
error) {
1187
_customLoaderStartupError = new KeyValuePair<string,
ExceptionDispatchInfo
>(appId, error);
1225
SetCustomLoaderFailure(appId,
ExceptionDispatchInfo
.Capture(ex));
1244
SetCustomLoaderFailure(appId,
ExceptionDispatchInfo
.Capture(ex));
HttpApplication.cs (3)
4370
private
ExceptionDispatchInfo
_error;
4390
_error = (error != null) ?
ExceptionDispatchInfo
.Capture(error) : null;
4432
ExceptionDispatchInfo
error = _error;
LegacyAspNetSynchronizationContext.cs (3)
27
private
ExceptionDispatchInfo
_error;
65
_error =
ExceptionDispatchInfo
.Capture(e);
85
internal override
ExceptionDispatchInfo
ExceptionDispatchInfo {
Util\SynchronizationHelper.cs (3)
34
public
ExceptionDispatchInfo
Error { get; set; }
162
Error =
ExceptionDispatchInfo
.Capture(ex);
199
Error =
ExceptionDispatchInfo
.Capture(ex);
WebSocketPipeline.cs (4)
54
private
ExceptionDispatchInfo
DoFlush() {
64
return
ExceptionDispatchInfo
.Capture(ex);
82
ExceptionDispatchInfo
flushExceptionDispatchInfo = DoFlush();
114
ExceptionDispatchInfo
exception = syncContext.ExceptionDispatchInfo;