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