15 references to TrySetException
mscorlib (15)
system\io\filestream.cs (3)
2745
task.
TrySetException
(ex);
2781
readTask.
TrySetException
(ex);
2817
writeTask.
TrySetException
(ex);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
664
task.
TrySetException
(exception);
system\threading\Tasks\FutureFactory.cs (4)
567
bool bWonSetException = promise.
TrySetException
(ex);
738
catch (Exception e) { promise.
TrySetException
(e); } // catch and log any scheduler exceptions
747
catch (Exception e) { promise.
TrySetException
(e); } // catch and log any scheduler exceptions
1458
successfullySet =
TrySetException
(exc);
system\threading\Tasks\Task.cs (4)
5541
bool succeeded = task.
TrySetException
(exception);
6166
TrySetException
(observedExceptions);
6416
TrySetException
(observedExceptions);
7293
result =
TrySetException
(edis);
system\threading\Tasks\TaskCompletionSource.cs (3)
164
bool rval = m_task.
TrySetException
(exception);
204
bool rval = m_task.
TrySetException
(defensiveCopy);
220
bool rval = m_task.
TrySetException
(exceptions);