58 references to Exception
mscorlib (8)
system\runtime\compilerservices\TaskAwaiter.cs (1)
194
throw task.
Exception
;
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (3)
234
Contract.Requires(faultedTask != null && faultedTask.IsFaulted && faultedTask.
Exception
.InnerExceptions.Count > 0,
241
cs.m_exceptions.AddRange(faultedTask.
Exception
.InnerExceptions);
635
var ignored = t.
Exception
;
system\threading\Tasks\Future.cs (1)
1664
public Exception Exception { get { return m_task.
Exception
; } }
system\threading\Tasks\Task.cs (3)
1400
/// or in accesses to the <see cref="
Exception
"/> property. Any exceptions not observed by the time
1739
/// <see cref="
Exception
"/> property will be non-null.
6716
public Exception Exception { get { return m_task.
Exception
; } }
System.Data (37)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
276
retry.TrySetException(task.
Exception
.InnerException);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
521
throw t.
Exception
.InnerException;
764
throw t.
Exception
.InnerException;
2495
else if (task.
Exception
!= null) {
2496
source.SetException(task.
Exception
.InnerException);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (12)
1377
throw completionTask.
Exception
.InnerException;
1445
Exception asyncException = ((Task)asyncResult).
Exception
;
1870
Exception asyncException = ((Task)asyncResult).
Exception
;
2076
Exception asyncException = ((Task)asyncResult).
Exception
;
2213
globalCompletion.TrySetException(tsk.
Exception
.InnerException);
2276
globalCompletion.TrySetException(retryTsk.
Exception
.InnerException);
2428
Exception e = t.
Exception
.InnerException;
2451
throw result.
Exception
.InnerException;
2492
Exception e = t.
Exception
.InnerException;
2520
source.SetException(executeTask.
Exception
.InnerException);
2532
source.SetException(readTask.
Exception
.InnerException);
2596
Exception e = t.
Exception
.InnerException;
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1476
Exception e = retryTask.
Exception
.InnerException;
1479
_result.SetException(retryTask.
Exception
.InnerException);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
4579
exceptionSource.TrySetException(retryTask.
Exception
.InnerException);
4663
Exception e = task.
Exception
.InnerException;
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (3)
227
if (t.
Exception
.InnerException is SqlException)
230
completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.
Exception
.InnerException)));
234
completion.SetException(t.
Exception
.InnerException);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (3)
212
if (t.
Exception
.InnerException is SqlException)
215
completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.
Exception
.InnerException)));
219
completion.SetException(t.
Exception
.InnerException);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (2)
62
if (tsk.
Exception
!= null) {
63
Exception exc = tsk.
Exception
.InnerException;
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
8008
FailureCleanup(stateObj, t.
Exception
.InnerException);
8009
throw t.
Exception
.InnerException;
8691
if (tsk.
Exception
!= null) {
8692
Exception exc = tsk.
Exception
.InnerException;
8704
FailureCleanup(stateObj, tsk.
Exception
);
10497
throw task.
Exception
.InnerException;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
2700
if ((_asyncWriteCount == 0) && ((!task.IsCompleted) || (task.
Exception
== null))) {
2940
if ((_asyncWriteCount == 0) && ((!task.IsCompleted) || (task.
Exception
== null))) {
System.ServiceModel (9)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
3261
throw FxTrace.Exception.AsError<FaultException>(task.
Exception
);
3265
exceptionHandler.Invoke(task.
Exception
);
System\ServiceModel\Channels\HttpRequestContext.cs (1)
1129
throw FxTrace.Exception.AsError<WebSocketException>(acceptTask.
Exception
);
System\ServiceModel\Channels\WebSocketHelper.cs (1)
329
throw FxTrace.Exception.AsError<CommunicationException>(task.
Exception
);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (5)
103
Fx.Assert(invokeTask.
Exception
!= null, "Task.IsFaulted guarantees non-null exception.");
104
ae = invokeTask.
Exception
;
121
Fx.Assert(task.
Exception
!= null, "Task.IsFaulted guarantees non-null exception.");
122
ae = task.
Exception
;
294
tcsObj.TrySetException(antecedent.
Exception
.InnerException);
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
32
tcs.TrySetException(t.
Exception
.InnerExceptions);
74
tcs.TrySetException(t.
Exception
.InnerExceptions);
System.Web (1)
Util\SynchronizationHelper.cs (1)
186
tcs.TrySetException(t.
Exception
.InnerExceptions);
System.Xml (1)
System\Xml\AsyncHelper.cs (1)
18
return task.IsCompleted && task.
Exception
== null;