56 references to SetException
mscorlib (1)
system\threading\Tasks\TaskCompletionSource.cs (1)
122/// The <see cref="SetResult"/>, <see cref="SetException(System.Exception)"/>,
System.Data (54)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
56completion.SetException(ex);
fx\src\data\System\Data\Common\DBConnection.cs (1)
196taskCompletionSource.SetException(e);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
1019tcs.SetException(ex); 2496source.SetException(task.Exception.InnerException); 2674source.SetException(SQL.BulkLoadMissingDestinationTable()); //no table to copy
fx\src\data\System\Data\SqlClient\SqlCommand.cs (10)
2429source.SetException(e); 2442source.SetException(e); 2493source.SetException(e); 2506source.SetException(e); 2520source.SetException(executeTask.Exception.InnerException); 2532source.SetException(readTask.Exception.InnerException); 2552source.SetException(exception); 2561source.SetException(e); 2597source.SetException(e); 2610source.SetException(e);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (5)
1414result.SetException(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 1424result.SetException(e); 1479_result.SetException(retryTask.Exception.InnerException); 1500_result.SetException(ADP.ExceptionWithStackTrace(ADP.InternalError(ADP.InternalErrorCode.CompletedConnectReturnedPending))); 1511_result.SetException(e);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (10)
3940source.SetException(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("NextResultAsync"))); 3955source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4001source.SetException(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("GetBytesAsync"))); 4007source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4023source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4115source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4266source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4386source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4487source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4614source.SetException(ADP.ExceptionWithStackTrace(ADP.ClosedConnectionError()));
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (6)
160completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 169completion.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 203completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 230completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 234completion.SetException(t.Exception.InnerException); 239completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this)));
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (7)
134completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 143completion.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 203completion.SetException(ex); 208completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 215completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 219completion.SetException(t.Exception.InnerException); 239completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this)));
fx\src\data\System\Data\SqlClient\SqlUtil.cs (5)
111completion.SetException(e); 121completion.SetException(e); 131completion.SetException(e); 135completion.SetException(e); 143completion.SetException(e);
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
8618completion.SetException(e); 8714completion.SetException(e); 8719completion.SetException(e); 8724completion.SetException(e); 8730completion.SetException(exc);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2793completion.SetException(e);
WindowsBase (1)
Base\System\Windows\Threading\DispatcherOperationTaskSource.cs (1)
69_taskCompletionSource.SetException(exception);