66 references to SourceException
Microsoft.AspNetCore.Components.Server.Tests (1)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
399Assert.Equal(testData.ErrorMessage, bindingFailure.BindingFailure.SourceException.Message);
Microsoft.AspNetCore.Diagnostics (10)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (10)
115var exceptionName = edi.SourceException.GetType().FullName!; 117if ((edi.SourceException is OperationCanceledException || edi.SourceException is IOException) && context.RequestAborted.IsCancellationRequested) 130DiagnosticsTelemetry.ReportUnhandledException(_logger, context, edi.SourceException); 158Error = edi.SourceException, 168context.Response.StatusCode = _options.StatusCodeSelector?.Invoke(edi.SourceException) ?? DefaultStatusCode; 175handled = await exceptionHandler.TryHandleAsync(context, edi.SourceException, context.RequestAborted); 196Exception = edi.SourceException, 210WriteDiagnosticEvent(_diagnosticListener, eventName, new { httpContext = context, exception = edi.SourceException }); 219$"If the exception handler is expected to return 404 status responses then set {nameof(ExceptionHandlerOptions.AllowStatusCode404Response)} to true.", edi.SourceException));
Microsoft.AspNetCore.Mvc.Abstractions (4)
Filters\ActionExecutedContext.cs (1)
51return _exceptionDispatchInfo.SourceException;
Filters\ExceptionContext.cs (1)
36return _exceptionDispatchInfo.SourceException;
Filters\ResourceExecutedContext.cs (1)
51return _exceptionDispatchInfo.SourceException;
Filters\ResultExecutedContext.cs (1)
59return _exceptionDispatchInfo.SourceException;
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\DecimalModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\DoubleModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\FloatModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
94exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ControllerActionInvokerTest.cs (2)
758Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 797Assert.Same(expected, context.ExceptionDispatchInfo.SourceException);
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
CommonResourceInvokerTest.cs (6)
1334Assert.Same(Exception, context.ExceptionDispatchInfo.SourceException); 1373Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1393Assert.Same(Exception, context.ExceptionDispatchInfo.SourceException); 1443Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1479Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1515Assert.Same(expected, context.ExceptionDispatchInfo.SourceException);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Filters\PageHandlerExecutedContext.cs (1)
71return _exceptionDispatchInfo.SourceException;
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerTest.cs (2)
1288Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1327Assert.Same(expected, context.ExceptionDispatchInfo.SourceException);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1303Log.ArgumentBindingFailure(_logger, bindingFailure.InvocationId, bindingFailure.Target, bindingFailure.BindingFailure.SourceException); 1312Log.StreamBindingFailure(_logger, bindingFailure.Id, bindingFailure.BindingFailure.SourceException);
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\JsonHubProtocolTestsBase.cs (1)
258Assert.Equal(expectedMessage, bindingFailure.BindingFailure.SourceException.Message);
Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
399Assert.Equal(testData.ErrorMessage, bindingFailure.BindingFailure.SourceException.Message);
Microsoft.AspNetCore.SignalR.Core (3)
Internal\DefaultHubDispatcher.cs (3)
247Log.InvalidHubParameters(_logger, bindingFailureMessage.Target, bindingFailureMessage.BindingFailure.SourceException); 250bindingFailureMessage.BindingFailure.SourceException, _enableDetailedErrors); 258bindingFailureMessage.BindingFailure.SourceException, _enableDetailedErrors);
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
1205result.Exception = _threadException.SourceException;
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
144Exception = info.SourceException
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
112jsRuntime.EndInvokeDotNet(invocationInfo, new DotNetInvocationResult(syncException.SourceException, "InvocationFailure")); 147var dispatchResult = new DotNetInvocationResult(exceptionDispatchInfo.SourceException, "InvocationFailure");
System.IO.Pipelines (1)
System\IO\Pipelines\PipeCompletionCallbacks.cs (1)
17_exception = edi?.SourceException;
System.Net.Security (2)
System\Net\Security\NegotiateStream.cs (1)
703if (_exception == null || !(_exception.SourceException is ObjectDisposedException))
System\Net\Security\SslStream.IO.cs (1)
528SetException(exception.SourceException);
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
168: base(message, innerExceptionInfos.Count != 0 ? innerExceptionInfos[0].SourceException : null) 174_innerExceptions[i] = innerExceptionInfos[i].SourceException;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
90_error.SourceException is OperationCanceledException ? ValueTaskSourceStatus.Canceled :
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
1756(eoAsEdi != null && eoAsEdi.SourceException is OperationCanceledException), 3281oce = edi.SourceException as OperationCanceledException; 3413(cancellationException as ExceptionDispatchInfo)?.SourceException is OperationCanceledException, 7518oceEdi.SourceException is OperationCanceledException oce)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (3)
129Debug.Assert(edi != null && edi.SourceException is OperationCanceledException, 271combinedExceptions[i] = exceptions[i].SourceException; 300Debug.Assert(edi == null || edi.SourceException is OperationCanceledException,
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
58throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException(); 79throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException();
System.Threading.Channels (1)
System\Threading\Channels\AsyncOperation.cs (1)
440_error.SourceException is OperationCanceledException ? ValueTaskSourceStatus.Canceled :
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
33throw _exceptionDispatchInfo.SourceException;
src\Shared\E2ETesting\WaitAssert.cs (1)
137throw new BrowserAssertFailedException(errors, exceptionInfo.SourceException, screenShotPath, innerHtml);
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
33throw _exceptionDispatchInfo.SourceException;
src\Shared\E2ETesting\WaitAssert.cs (1)
137throw new BrowserAssertFailedException(errors, exceptionInfo.SourceException, screenShotPath, innerHtml);
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
33throw _exceptionDispatchInfo.SourceException;
src\Shared\E2ETesting\WaitAssert.cs (1)
137throw new BrowserAssertFailedException(errors, exceptionInfo.SourceException, screenShotPath, innerHtml);
Templates.Tests (2)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
33throw _exceptionDispatchInfo.SourceException;
src\Shared\E2ETesting\WaitAssert.cs (1)
137throw new BrowserAssertFailedException(errors, exceptionInfo.SourceException, screenShotPath, innerHtml);
Wasm.Performance.Driver (1)
Program.cs (1)
322throw edi.SourceException;