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