3 overrides of Source
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\OperationCanceledExceptionMock.cs (1)
15public override string? Source { get => "System.Private.CoreLib"; set => base.Source = value; }
PresentationFramework (1)
MS\Internal\PtsHost\Pts.cs (1)
284public override string Source
System.Data.Odbc (1)
System\Data\Odbc\OdbcException.cs (1)
68public override string Source
15 writes to Source
Microsoft.Build (2)
Errors\RegistryException.cs (2)
54base.Source = source; 79base.Source = source;
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
64base.Source = remoteState.Source;
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\OperationCanceledExceptionMock.cs (1)
15public override string? Source { get => "System.Private.CoreLib"; set => base.Source = value; }
Microsoft.Extensions.Resilience.Tests (2)
Resilience\ResilienceMetricsEnricherTests.cs (2)
41CreateSut().Enrich(CreateEnrichmentContext<string>(Outcome.FromException<string>(new InvalidOperationException { Source = "my-source" }))); 51CreateSut().Enrich(CreateEnrichmentContext<string>(Outcome.FromException<string>(new InvalidOperationException { Source = "my-source" })));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\ErrObject.vb (1)
318e.Source = m_curSource
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
64base.Source = remoteState.Source;
PresentationFramework (1)
MS\Internal\PtsHost\Pts.cs (1)
287set { InnerException.Source = value; }
System.Text.Json (6)
System\Text\Json\ThrowHelper.cs (6)
226return new InvalidOperationException(message) { Source = ExceptionSourceValueToRethrowAsJsonException }; 588ex.Source = ExceptionSourceValueToRethrowAsJsonException; 597ex.Source = ExceptionSourceValueToRethrowAsJsonException; 654throw new FormatException { Source = ExceptionSourceValueToRethrowAsJsonException }; 710throw new FormatException(message) { Source = ExceptionSourceValueToRethrowAsJsonException }; 738throw new FormatException(message) { Source = ExceptionSourceValueToRethrowAsJsonException };
55 references to Source
Aspire.Dashboard.Components.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Dashboard.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.Kafka.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.MySql.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.NodeJs.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.RabbitMQ.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Playground.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
XmlSerializerInputFormatter.cs (1)
147string.Equals("Microsoft.GeneratedCode", exception.InnerException.Source, StringComparison.InvariantCulture))
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\Shared\TaskExtensions.cs (2)
90catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace) 125catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace)
Microsoft.Build (7)
Definition\ToolsetConfigurationReader.cs (1)
142InvalidToolsetDefinitionException.Throw(ex, "ConfigFileReadError", ElementLocation.Create(ex.Source, ex.Line, 0).LocationString, ex.BareMessage);
Definition\ToolsetRegistryReader.cs (6)
87InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message); 185InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message); 216InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message); 249InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message); 258InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message); 303InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
86writer.WriteOptionalString(exception.Source);
Microsoft.Extensions.Http.Resilience (1)
Polly\HttpClientResiliencePredicates.cs (1)
55&& outcome.Exception is OperationCanceledException { Source: "System.Private.CoreLib", InnerException: TimeoutException };
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\ErrObject.vb (1)
73Me.Source = m_curException.Source
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
86writer.WriteOptionalString(exception.Source);
PresentationFramework (2)
MS\Internal\PtsHost\Pts.cs (1)
286get { return InnerException.Source; }
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (1)
56public string GetSource() => _exception.Source;
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
108_source ??= Source; // Set the Source information correctly before serialization
src\System\Exception.CoreCLR.cs (1)
104_ = Source;
System.Text.Json (3)
System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (2)
66case FormatException when ex.Source == ThrowHelper.ExceptionSourceValueToRethrowAsJsonException: 70case InvalidOperationException when ex.Source == ThrowHelper.ExceptionSourceValueToRethrowAsJsonException:
System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs (1)
29case InvalidOperationException when ex.Source == ThrowHelper.ExceptionSourceValueToRethrowAsJsonException:
WindowsBase.Tests (14)
System\Security\RightsManagement\RightsManagementExceptionTests.cs (14)
18Assert.Null(exception.Source); 33Assert.Null(exception.Source); 47Assert.Null(exception.Source); 59Assert.Null(exception.Source); 83Assert.Null(exception.Source); 98Assert.Null(exception.Source); 113Assert.Null(exception.Source); 134Assert.Null(exception.Source); 155Assert.Null(exception.Source); 179Assert.Null(exception.Source); 203Assert.Null(exception.Source); 226Assert.Null(exception.Source); 248Assert.Null(exception.Source); 264Assert.Null(exception.Source);