218 references to Exception
aspire (9)
Commands\AppHostLauncher.cs (1)
820static completedTask => _ = completedTask.Exception,
Commands\PipelineCommandBase.cs (2)
304if (completedTask.IsFaulted && completedTask.Exception?.InnerException is DotNetSdkNotInstalledException sdkException) 321var innerException = completedTask.IsFaulted ? completedTask.Exception : null;
Commands\RunCommand.cs (1)
768static completedTask => _ = completedTask.Exception,
Processes\IsolatedProcess.Unix.cs (1)
134_ = completedTask.Exception;
Projects\AppHostServerSession.cs (1)
449completedTask => _ = completedTask.Exception,
Tui\TerminalViewerApp.cs (1)
221_embeddedFault = t.Exception?.GetBaseException();
Utils\EnvironmentChecker\EnvironmentChecker.cs (1)
68static task => _ = task.Exception,
Utils\ProcessCaptureRunner.cs (1)
247static t => _ = t.Exception,
Aspire.Hosting (1)
Pipelines\DistributedApplicationPipeline.cs (1)
958.Select(t => t.Exception!)
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (2)
1094resource.AzureResource.ProvisioningTaskCompletionSource?.Task.Exception?.InnerExceptions.Any(IsMissingAzureContextFailure) == true); 1112.Select(static resource => resource.AzureResource.ProvisioningTaskCompletionSource?.Task.Exception)
Aspire.Hosting.Tasks (1)
RunAspireCliCommand.cs (1)
318static completedTask => _ = completedTask.Exception,
Aspire.Hosting.Tests (2)
Orchestrator\ParameterProcessorTests.cs (2)
139Assert.IsType<MissingParameterValueException>(parameterWithMissingValue.WaitForValueTcs.Task.Exception?.InnerException); 172Assert.IsType<InvalidOperationException>(parameterWithError.WaitForValueTcs.Task.Exception?.InnerException);
Aspire.TerminalHost (1)
TerminalHostApp.cs (1)
148var fault = replicaRun.Exception?.GetBaseException();
CatalogDb (2)
CatalogDbInitializerHealthCheck.cs (2)
14{ IsFaulted: true } => Task.FromResult(HealthCheckResult.Unhealthy(task.Exception?.InnerException?.Message, task.Exception)),
CodeStyleConfigFileGenerator (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
dotnet (1)
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (1)
70WriteFailureMessage(server, task.Exception);
dotnet-svcutil-lib (10)
FrameworkFork\Microsoft.Xml\Xml\AsyncHelper.cs (1)
27return task.IsCompleted && task.Exception == null;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (3)
23throw Fx.Exception.AsError<TException>(task.Exception); 60if (antecedent.IsFaulted) tcsObj.TrySetException(antecedent.Exception.InnerException); 109tcsObj.TrySetException(antecedent.Exception.InnerException);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (2)
193throw FxTrace.Exception.AsError<CommunicationException>(task.Exception); 206return FxTrace.Exception.AsError<CommunicationException>(task.Exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
83Fx.Assert(invokeTask.Exception != null, "Task.IsFaulted guarantees non-null exception."); 84ae = invokeTask.Exception; 94Fx.Assert(task.Exception != null, "Task.IsFaulted guarantees non-null exception."); 95ae = task.Exception;
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.AspNetCore.Components (5)
ErrorBoundaryBase.cs (1)
98ExceptionDispatchInfo.Capture(onExceptionTask.Exception!).Throw();
RenderTree\Renderer.cs (4)
688var baseException = task.Exception.GetBaseException(); 929HandleException(updateDisplayTask.Exception); 976HandleException(updateDisplayTask.Exception); 1020HandleExceptionViaErrorBoundary(task.Exception, state);
Microsoft.AspNetCore.Components.Web (2)
HtmlRendering\StaticHtmlRenderer.cs (2)
74ExceptionDispatchInfo.Capture(quiescenceTask.Exception.InnerException ?? quiescenceTask.Exception).Throw();
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyDispatcher.cs (2)
102state.tcs.SetException(t.Exception); 146state.tcs.SetException(t.Exception);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
517static t => _ = t.Exception,
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionContext.cs (2)
711Transport?.Output.Complete(applicationTask.Exception?.InnerException); 736Application?.Output.Complete(transportTask.Exception?.InnerException);
Internal\HttpConnectionDispatcher.cs (1)
414connection.Transport.Output.Complete(connection.ApplicationTask.Exception);
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\LongPollingTransport.cs (1)
98_error = sending.IsFaulted ? sending.Exception!.InnerException : null;
Internal\ServerSentEventsTransport.cs (1)
115_error = sending.IsFaulted ? sending.Exception!.InnerException : null;
Microsoft.AspNetCore.Owin (1)
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
90_requestTcs.TrySetException(task.Exception);
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (2)
900static t => _ = t.Exception, 983_ = reader.Completion.Exception;
HubConnectionExtensions.StreamAsChannelAsync.cs (1)
316_ = inputChannel.Completion.Exception;
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
302_ = tcs.Task.Exception;
Microsoft.AspNetCore.SignalR.Core (1)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
302_ = tcs.Task.Exception;
Microsoft.Build.Framework (2)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FatalError.cs (2)
231_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 241_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
730var innerException = faultedTask.Exception?.InnerException;
Microsoft.CodeAnalysis.Analyzers (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.CodeStyle (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.Workspaces (9)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (2)
181if (task.Exception != null) 183throw task.Exception;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
Microsoft.Extensions.Hosting (3)
Internal\Host.cs (3)
466if (task.Exception is not null) 468exceptions.AddRange(task.Exception.InnerExceptions); // Log exception from async method. 495exceptions.AddRange(groupedTasks.Exception.InnerExceptions);
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
144if (task.Exception != null) 146var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(task.Exception.GetBaseException());
Microsoft.Maui.Controls (1)
NavigationPage\NavigationPage.cs (1)
412 throw t.Exception;
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
66 if (task.Exception != null) 68 var ex = task.Exception.GetBaseException();
Microsoft.TemplateEngine.Edge (10)
TemplateConstraintManager.cs (10)
71_logger.LogWarning(LocalizableStrings.TemplateConstraintManager_Error_FailedToInitialize, constraint.Type, constraint.Task.Exception.Message); 72_logger.LogDebug($"Details: {constraint.Task.Exception}."); 122var exception = task.Exception is not null ? task.Exception.InnerException ?? task.Exception : task.Exception; 197var exception = task.Exception is not null ? task.Exception.InnerException ?? task.Exception : task.Exception;
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
BindSymbolEvaluator.cs (3)
95_logger.LogDebug(currentTask.Exception, "The evaluation task has failed: {0}", currentTask.Exception.Message); 244_logger.LogDebug("Failed to retrieve '{0}' from the source {1}: {2}", binding, nameof(task.Source), task.Task.Exception.Message);
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketClient.cs (2)
96Connected.SafeInvoke(this, new ConnectedEventArgs(connectAsyncTask.Exception), "SocketClient: Server Failed to Connect"); 97EqtTrace.Verbose("Unable to connect to server, Exception occurred: {0}", connectAsyncTask.Exception);
Microsoft.TestPlatform.CrossPlatEngine (4)
Client\Parallel\ParallelProxyDiscoveryManager.cs (2)
292EqtTrace.Error("ParallelProxyDiscoveryManager: Failed to trigger discovery. Exception: " + t.Exception); 295var exceptionString = t.Exception?.ToString();
Client\Parallel\ParallelProxyExecutionManager.cs (2)
427EqtTrace.Error("ParallelProxyExecutionManager.StartTestRunOnConcurrentManager(continuation): Failed to trigger execution. Exception: " + t.Exception); 430var exceptionToString = t.Exception?.ToString();
Microsoft.VisualStudio.TestPlatform.Common (2)
DataCollection\DataCollectionAttachmentManager.cs (2)
302if (t.Exception == null) 310sendFileCompletedCallback?.SafeInvoke(this, new AsyncCompletedEventArgs(t.Exception, false, fileTransferInfo.UserToken), "DataCollectionManager.AddNewFileTransfer");
NuGet.PackageManagement (2)
PackageDownloader.cs (2)
216if (task.Exception == null) 222message = ExceptionUtilities.DisplayMessage(task.Exception);
NuGet.Protocol (1)
LegacyFeed\V2FeedParser.cs (1)
503_ = docRequest.ContinueWith(t => { _ = t.Exception; },
Roslyn.Diagnostics.Analyzers (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
234_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!), 244_ = task.ContinueWith(p => ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (4)
581RoslynDebug.AssertNotNull(task.Exception); 582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions); 585this.TrySetException(task.Exception);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbConnectionFactory.cs (1)
112retry.TrySetException(task.Exception!.InnerException!);
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionFactory.cs (1)
228retry.TrySetException(task.Exception!.InnerException!);
System.Diagnostics.Process (2)
System\Diagnostics\Process.Multiplexing.cs (2)
465if (whenAll.Exception?.InnerExceptions.Count > 1) 467throw whenAll.Exception;
System.Net.Http (4)
System\Net\Http\MessageProcessingHandler.cs (1)
68sendState.TrySetException(task.Exception!.GetBaseException());
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
157Trace($"{nameof(QuicConnection)} failed to close: {closeTask.Exception!.InnerException}"); 497if (t.Exception?.InnerException is QuicException ex && ex.QuicError == QuicError.StreamAborted)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
331Exception? e = task.Exception!.InnerException; // Access Exception even if not tracing, to avoid TaskScheduler.UnobservedTaskException firing
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
133Exception? ex = t.Exception?.InnerException;
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
527var e = new PingCompletedEventArgs(t.IsCompletedSuccessfully ? t.Result : null, t.Exception, t.IsCanceled, asyncOp.UserSuppliedState);
System.Net.Quic (6)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (2)
317_ = _signaledTask.Exception; // Observe the exception. 359_ = _finalTaskSource.Task.Exception; // Observe the exception.
System\Net\Quic\QuicConnection.cs (3)
659_ = _connectionCloseTcs.Task.Exception; 670_ = _connectionCloseTcs.Task.Exception; 684_ = _connectionCloseTcs.Task.Exception;
System\Net\Quic\QuicListener.cs (1)
302if (task.AsTask().Exception?.InnerException is Exception handshakeException)
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (2)
4082Debug.Assert(t.Exception != null); 4083return t.Exception.InnerException switch
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1912Exception e = task.Exception!.InnerException!;
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
161throw task.Exception!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (3)
230Debug.Assert(faultedTask != null && faultedTask.IsFaulted && faultedTask.Exception!.InnerExceptionCount > 0, 234AggregateException faultedException = faultedTask.Exception; 648_ = t.Exception;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
1427public Exception? Exception => m_task.Exception;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
1393/// or in accesses to the <see cref="Exception"/> property. Any exceptions not observed by the time 1672/// <see cref="Exception"/> property will be non-null. 1674[MemberNotNullWhen(true, nameof(Exception))] 7336public Exception? Exception => m_task.Exception;
System.Runtime.InteropServices.JavaScript (13)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (1)
248tcs.SetException(t.Exception!);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Task.cs (12)
177if (task.Exception != null) 179Exception ex = task.Exception; 227if (task.Exception != null) 229RejectPromise(taskHolderArg, task.Exception); 272if (task.Exception != null) 274Exception ex = task.Exception; 313if (task.Exception != null) 315RejectPromise(taskHolderArg, task.Exception); 349if (task.Exception != null) 351Exception ex = task.Exception; 392if (task.Exception != null) 394RejectPromise(hm.TaskHolder, task.Exception);
System.ServiceModel.Federation (2)
System\Runtime\TaskHelpers.cs (2)
48tcsObj.TrySetException(antecedent.Exception.InnerException); 104tcsObj.TrySetException(antecedent.Exception.InnerException);
System.ServiceModel.Http (2)
System\ServiceModel\Channels\WebSocketHelper.cs (2)
192throw FxTrace.Exception.AsError<CommunicationException>(task.Exception); 205return FxTrace.Exception.AsError<CommunicationException>(task.Exception);
System.ServiceModel.Primitives (7)
Internals\System\Runtime\TaskHelpers.cs (3)
24throw Fx.Exception.AsError<TException>(task.Exception); 63tcsObj.TrySetException(antecedent.Exception.InnerException); 119tcsObj.TrySetException(antecedent.Exception.InnerException);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
78Fx.Assert(invokeTask.Exception != null, "Task.IsFaulted guarantees non-null exception."); 79ae = invokeTask.Exception; 89Fx.Assert(task.Exception != null, "Task.IsFaulted guarantees non-null exception."); 90ae = task.Exception;
System.ServiceModel.Primitives.Tests (1)
ServiceModel\ThrowingOnCloseBindingElement.cs (1)
166tcs.TrySetException(task.Exception.InnerExceptions);
System.Threading.Channels (1)
System\Threading\Channels\ChannelUtilities.cs (1)
44_ = tcs.Task.Exception;
System.Threading.Tasks.Dataflow (20)
Base\DataflowBlock.cs (3)
1955Common.AddException(ref exceptions, task.Exception!, unwrapInnerExceptions: true); 2213sourceCompletionTask.Exception : null; 2385static (t, state) => ((ObserversState)state!).NotifyObserversOfCompletion(t.Exception!), this,
Blocks\ActionBlock.cs (1)
207_defaultTarget.Complete(completed.Exception, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
Blocks\BatchBlock.cs (1)
85thisBlock.Fault(completed.Exception!);
Blocks\BatchedJoinBlock.cs (2)
103thisBlock.Fault(completed.Exception!); 352thisBlock.Fault(completed.Exception!);
Blocks\BroadcastBlock.cs (1)
92thisBlock.Fault(completed.Exception!);
Blocks\BufferBlock.cs (1)
74thisBlock.Fault(completed.Exception!);
Blocks\JoinBlock.cs (2)
96thisBlock.Fault(completed.Exception!); 315thisBlock.Fault(completed.Exception!);
Blocks\TransformBlock.cs (3)
143if (completed.IsFaulted) sourceCore.AddAndUnwrapAggregateException(completed.Exception!); 155thisBlock.Fault(completed.Exception!); 287AggregateException aggregate = completed.Exception!;
Blocks\TransformManyBlock.cs (3)
142if (completed.IsFaulted) sourceCore.AddAndUnwrapAggregateException(completed.Exception!); 154thisBlock.Fault(completed.Exception!); 286AggregateException aggregate = completed.Exception!;
Internal\Common.cs (2)
487_ = task.Exception; 552AggregateException? exception = sourceCompletionTask.IsFaulted ? sourceCompletionTask.Exception : null;
Internal\DataflowEtwProvider.cs (1)
140try { exceptionData = string.Join(Environment.NewLine, completionTask.Exception!.InnerExceptions.Select(static e => e.ToString())); }