Base:
method
ToString
System.Object.ToString()
17 overrides of ToString
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (1)
382public override string ToString()
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
43public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\ActiveStatementTests.cs (1)
12969public override string ToString()
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
350public override string ToString()
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (1)
126Public Overrides Function ToString() As String
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
43public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
366public override string ToString()
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
93public override string ToString()
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
50public override string ToString()
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
73public override string ToString()
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
51public override string ToString() => CreateString(isMessage: false);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
50public override string ToString()
src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (1)
68public override string ToString() => base.ToString();
System.Private.Xml (1)
System\Xml\Xsl\XslException.cs (1)
81public override string ToString()
System.Security.Permissions (1)
System\Security\HostProtectionException.cs (1)
78public override string ToString()
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (1)
23public override string ToString() => _kind switch
xunit.assert (1)
Sdk\Exceptions\XunitException.cs (1)
60 public override string ToString()
500 references to ToString
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
402WriteLine($"Failed to analyze {project.Name} with {e.ToString()}", ConsoleColor.Red);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Hosting (2)
Health\ResourceHealthCheckService.cs (2)
231|| !StringComparers.HealthReportPropertyValue.Equals(checkReportSnapshot.ExceptionText, value.Exception?.ToString())) 278var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString());
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Hosting.Tests (2)
Dashboard\DashboardLifecycleHookTests.cs (1)
249Exception = new InvalidOperationException("Error!").ToString(),
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\ExceptionExtensions.cs (1)
25return exception.ToString();
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\ExceptionExtensions.cs (1)
25return exception.ToString();
Aspire.Playground.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
258connectAttemptActivity.AddTag("exception.stacktrace", ex.ToString());
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.1.0.cs (2)
411exception.ToString())); 458exception.ToString()));
Contract.XmlSerializer.IntegrationTests (2)
XmlSerializerFormatTest.cs (2)
95Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 117Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}");
csi (1)
Csi.cs (1)
48Console.Error.WriteLine(ex.ToString());
DependencyInjectionApp (1)
Program.cs (1)
35return context.Response.WriteAsync(ex.ToString());
dotnet-dev-certs (13)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
dotnet-getdocument (1)
src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
62_reporter.WriteError(ex.ToString());
dotnet-openapi (2)
Commands\BaseCommand.cs (1)
572await Error.WriteLineAsync(ex.ToString());
Program.cs (1)
36errorWriter.WriteLine(ex.ToString());
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (1)
48Tool.FailFast(e.ToString());
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
101WriteError(e.ToString(), prefix);
dotnet-svcutil.xmlserializer.IntegrationTests (2)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (2)
95Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 117Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}");
dotnet-svcutil-lib (6)
AppInsightsTelemetryClient.cs (1)
207this.TrackError(eventName, exceptionObject.ToString());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
169xml.WriteElementString(DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString()));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
284new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (2)
209TraceCore.UnhandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 230TraceCore.ThrowingException(_diagnosticTrace, eventSource, exception != null ? exception.ToString() : string.Empty, exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (1)
186WcfEventSource.Instance.ServiceException(error.ToString(), error.GetType().FullName);
dotnet-user-secrets (1)
Program.cs (1)
43reporter.Verbose(exception.ToString());
GetDocument.Insider (3)
Commands\GetDocumentCommand.cs (1)
154Reporter.WriteError(ex.ToString());
Commands\GetDocumentCommandWorker.cs (1)
183_reporter.WriteError(ex.ToString());
ProgramBase.cs (1)
62_reporter.WriteError(ex.ToString());
HelixTestRunner (1)
Program.cs (1)
64ProcessUtil.PrintMessage($"HelixTestRunner uncaught exception: {e.ToString()}");
HotAddSample (1)
Startup.cs (1)
52await context.Response.WriteAsync(ex.ToString().Replace(Environment.NewLine, "<br>"));
illink (3)
Infrastructure.Common (4)
ServiceUtilHelper.cs (4)
131s_rootCertInstallErrorMessage = ex.ToString(); 220s_clientCertInstallErrorMessage = ex.ToString(); 274s_osXKeychainCertInstallErrorMessage = ex.ToString(); 333s_peerCertInstallErrorMessage = ex.ToString();
InMemory.FunctionalTests (2)
BadHttpRequestTests.cs (1)
339exceptionString = badRequestFeature.Error.ToString();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
145Trace(e.ToString());
InProcessWebSite (5)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (5)
322await ctx.Response.WriteAsync(exception.ToString()); 358await ctx.Response.WriteAsync(exception.ToString()); 380await ctx.Response.WriteAsync(exception.ToString()); 1173await ctx.Response.WriteAsync(exception.ToString()); 1194await ctx.Response.WriteAsync(exception.ToString());
Interop.FunctionalTests (2)
HttpClientHttp2InteropTests.cs (2)
742Assert.Contains("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8)", responseEx.ToString()); 801Assert.Contains("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8)", responseEx.ToString());
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
85WriteMessage(textWriter, logEntry.Exception.ToString());
Microsoft.AspNetCore.Authentication.Test (8)
JwtBearerTests.cs (4)
569throw new NotImplementedException(context.Exception.ToString()); 604throw new NotImplementedException(context.Exception.ToString()); 636throw new NotImplementedException(context.Exception.ToString()); 671throw new NotImplementedException(context.Exception.ToString());
JwtBearerTests_Handler.cs (4)
531throw new NotImplementedException(context.Exception.ToString()); 565throw new NotImplementedException(context.Exception.ToString()); 597throw new NotImplementedException(context.Exception.ToString()); 629throw new NotImplementedException(context.Exception.ToString());
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
221? exception.ToString()
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitHost.cs (1)
704return exception.ToString();
Circuits\RemoteErrorBoundaryLogger.cs (1)
35? exception.ToString()
Circuits\RemoteJSRuntime.cs (1)
74errorMessage = invocationResult.Exception.ToString();
Microsoft.AspNetCore.Components.WebAssembly (5)
HotReload\HotReloadAgent.cs (1)
186Reporter.Report(ex.ToString(), AgentMessageSeverity.Warning);
HotReload\MetadataUpdateHandlerInvoker.cs (1)
79reporter.Report(e.ToString(), AgentMessageSeverity.Warning);
HotReload\WebAssemblyHotReload.cs (1)
127errorMessage = e.ToString();
Services\WebAssemblyConsoleLogger.cs (1)
134logBuilder.Append(exception.ToString());
Services\WebAssemblyErrorBoundaryLogger.cs (1)
22_errorBoundaryLogger.LogError(exception, exception.ToString());
Microsoft.AspNetCore.Components.WebView (2)
Services\WebViewErrorBoundaryLogger.cs (1)
22_errorBoundaryLogger.LogError(exception, exception.ToString());
Services\WebViewJSRuntime.cs (1)
60: invocationResult.Exception.ToString();
Microsoft.AspNetCore.DataProtection.Tests (1)
StringLoggerFactory.cs (1)
68"Message: {4}", _name, logLevel, eventId, exception?.ToString(), formatter(state, exception));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (13)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
238sb.AppendLine(errorContext.Exception.ToString()); 264details: errorContext.Exception.ToString(),
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (1)
856Write(errorDetail.Error.ToString());
Microsoft.AspNetCore.Diagnostics.Tests (1)
DeveloperExceptionPageMiddlewareTest.cs (1)
661return context.HttpContext.Response.WriteAsync(context.Exception.ToString());
Microsoft.AspNetCore.Hosting (2)
Internal\WebHost.cs (1)
232Console.WriteLine("Application startup exception: " + ex.ToString());
src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
761Write(errorDetail.Error!.ToString());
Microsoft.AspNetCore.Identity.Test (1)
RetryHandler.cs (1)
49_output.WriteLine($"Request '{method} - {url}' failed with {e.ToString()}");
Microsoft.AspNetCore.InternalTesting (1)
Logging\XunitLoggerProvider.cs (1)
88lines = exception.ToString().Split(NewLineChars, StringSplitOptions.RemoveEmptyEntries);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (19)
Http3Tests.cs (6)
35await httpContext.Response.WriteAsync(ex.ToString()); 63await httpContext.Response.WriteAsync(ex.ToString()); 103await httpContext.Response.WriteAsync(ex.ToString()); 139await httpContext.Response.WriteAsync(ex.ToString()); 167await httpContext.Response.WriteAsync(ex.ToString()); 197await httpContext.Response.WriteAsync(ex.ToString());
HttpsTests.cs (3)
141await httpContext.Response.WriteAsync(ex.ToString()); 233await httpContext.Response.WriteAsync(ex.ToString()); 263await httpContext.Response.WriteAsync(ex.ToString());
OpaqueUpgradeTests.cs (5)
34return httpContext.Response.WriteAsync(ex.ToString()); 62return httpContext.Response.WriteAsync(ex.ToString()); 232await httpContext.Response.WriteAsync(ex.ToString()); 268await httpContext.Response.WriteAsync(ex.ToString()); 291await httpContext.Response.WriteAsync(ex.ToString());
RequestTests.cs (5)
58byte[] body = Encoding.ASCII.GetBytes(ex.ToString()); 122byte[] body = Encoding.ASCII.GetBytes(ex.ToString()); 185byte[] body = Encoding.ASCII.GetBytes(ex.ToString()); 229byte[] body = Encoding.ASCII.GetBytes(ex.ToString()); 326byte[] body = Encoding.ASCII.GetBytes(ex.ToString());
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
761Write(errorDetail.Error!.ToString());
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
181Logger.LogError("Error occurred while starting the process. Exception: {exception}", ex.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (13)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
145Trace(e.ToString());
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
424"Message: {4}", _name, logLevel, eventId, exception?.ToString(), formatter(state, exception));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
147var message = log.Write.Exception.ToString();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
184Debug.Fail(exception.ToString());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
345Debug.Fail(exception.ToString());
Microsoft.AspNetCore.TestHost.Tests (1)
ClientHandlerTests.cs (1)
589await context.Response.WriteAsync(ex.ToString());
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
43await ct.Response.WriteAsync(ex.ToString());
Microsoft.Build (21)
BackEnd\BuildManager\BuildManager.cs (1)
2552loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString());
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
241TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString()); 260TraceEngine("CFB: Shutting down request {0}({1}) (nr {2}) failed due to exception: {3}", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, e.ToString()); 306ErrorUtilities.ThrowInternalError("Failure during engine shutdown. Exception: {0}", e.ToString());
BackEnd\Components\Communications\NodeLauncher.cs (1)
129ex.ToString());
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
235message += Environment.NewLine + exception.ToString(); 270message += Environment.NewLine + exception.ToString();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
828loggingContext.LogCommentFromText(MessageImportance.Low, ex.ToString()); 838(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(BuildEventFileInfo.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
348throw new SdkResolverException("CouldNotRunNuGetSdkResolver", sdkResolver, sdk, e, MSBuildConstants.NuGetAssemblyPathEnvironmentVariableName, e.ToString()); 353throw new SdkResolverException("SDKResolverFailed", sdkResolver, sdk, e, sdkResolver.Name, sdk.ToString(), e.ToString());
Construction\Solution\SolutionFile.cs (2)
333solutionEx.ToString()); 340ex.ToString());
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
FileMatcher.cs (1)
2602ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GlobExpansionFailed", filespecUnescaped, ex.ToString()));
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
285ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 436ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Instance\TaskFactories\TaskHostTask.cs (1)
527_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString());
Instance\TaskRegistry.cs (2)
1429e.ToString(); 1527ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
InterningBinaryReader.cs (1)
173Debug.Assert(false, e.ToString());
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingService_Tests.cs (1)
1131Assert.Fail("Expected a " + expectedExceptionType + " but got a " + e.GetType() + " Stack:" + e.ToString());
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1330message += Environment.NewLine + exception.ToString();
BackEnd\SdkResolverService_Tests.cs (1)
182message = e.ToString();
BackEnd\TargetBuilder_Tests.cs (1)
1670Console.WriteLine(ex.ToString());
Microsoft.Build.Framework (5)
BuildException\BuildExceptionBase.cs (2)
43public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
InternalErrorException.cs (1)
113string innerMessage = (innerException == null) ? String.Empty : innerException.ToString();
ITaskItemExtensions.cs (1)
59Debug.Fail(e.ToString());
Telemetry\OpenTelemetryManager.cs (1)
109LoadFailureExceptionMessage = ex.ToString();
Microsoft.Build.Tasks.Core (8)
Copy.cs (1)
979LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Name, destinationFileState.Name, code);
DownloadFile.cs (1)
132Log.LogMessage(MessageImportance.Low, actualException.ToString());
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
FileMatcher.cs (1)
2602ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GlobExpansionFailed", filespecUnescaped, ex.ToString()));
GenerateResource.cs (1)
2599"General.InvalidResxFile", msbuildResXException.InnerException.ToString());
GetSDKReferenceFiles.cs (1)
943_exceptionMessages.Enqueue(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemReadingCacheFile", cacheFile, e.ToString()));
InterningBinaryReader.cs (1)
173Debug.Assert(false, e.ToString());
XslTransformation.cs (1)
187Log.LogMessage(MessageImportance.Low, e.ToString());
Microsoft.Build.UnGAC (1)
Program.cs (1)
58Console.WriteLine($"Caught an exception! We don't want to throw because we want MSBuild to install.\n" + e.ToString());
Microsoft.Build.UnitTests.Shared (6)
DummyMappedDrive.cs (2)
56Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString()); 69Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString());
ObjectModelHelpers.cs (4)
165customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 172customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 892Console.WriteLine(ex.ToString()); 930Console.WriteLine(ex.ToString());
Microsoft.Build.Utilities.Core (4)
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
FileMatcher.cs (1)
2602ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GlobExpansionFailed", filespecUnescaped, ex.ToString()));
ToolTask.cs (2)
1601LogPrivate.LogErrorWithCodeFromResources("General.InvalidToolSwitch", ToolExe, e.ToString()); 1609LogPrivate.LogErrorWithCodeFromResources("ToolTask.CouldNotStartToolExecutable", ToolExe, e.ToString());
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (2)
3313diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? "")); 3490diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? ""));
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
186CodeAnalysisEventSource.Log.DisposeAssemblyLoadContextException(context.Directory, ex.ToString());
InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
SourceGeneration\GeneratorDriver.cs (1)
385CodeAnalysisEventSource.Log.GeneratorException(generator.GetGeneratorType().Name, e.ToString());
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
39return exception.ToString();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
67Assert.False(true, exception.ToString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
418Assert.Contains(exception.ToString(), generatorDiagnostics.Single().ToString());
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\EditAndContinueLanguageService.cs (1)
92logReporter.Report(e.ToString(), LogMessageSeverity.Error);
LanguageServer\AbstractInProcLanguageClient.cs (1)
266Name, initializationState.StatusMessage, initializationState.InitializationException?.ToString());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
ExpressionEvaluatorFatalError.cs (1)
44Debug.Assert(false, "Failure checking registry key: " + ex.ToString());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (1)
44Debug.Assert(false, "Failure checking registry key: " + ex.ToString());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (1)
44Debug.Assert(false, "Failure checking registry key: " + ex.ToString());
Microsoft.CodeAnalysis.Features (4)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
713: new RudeEditDiagnostic(RudeEditKind.InternalError, span: default, arguments: [newDocument.FilePath, e.ToString()]); 1323diagnosticContext.Report(RudeEditKind.MemberBodyInternalError, cancellationToken, arguments: [newMember.Name, e.ToString()]);
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
39return exception.ToString();
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
87=> Log(text + ". " + exception.ToString());
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
87_logger.LogWarning($"Failed to get project telemetry data: {ex.ToString()}");
Logging\LspLogMessageLogger.cs (1)
45var exceptionString = exception.ToString();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
src\Workspaces\CoreTestUtilities\Logging\TestOutputLoggerProvider.cs (1)
35testOutputHelper.WriteLine(exception.ToString());
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
AbstractResxGenerator.cs (1)
206var exceptionLines = ex.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.None);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.UnitTests (6)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (6)
110{new LazyToString(() => exception.ToString())} 122{new LazyToString(() => exception.ToString())} 134{new LazyToString(() => exception.ToString())} 167exception.ToString().Substring(0, exception.ToString().IndexOf("---")) + "-----" + Environment.NewLine + Environment.NewLine + 168string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, AnalyzerName, exception.GetType().ToString(), exception.Message, exception.ToString() + Environment.NewLine + "-----"))}")
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\EmitTestStrongNameProvider.vb (1)
43Diagnostic(ERRID.ERR_PeWritingFailure).WithArguments(thrownException.ToString()).WithLocation(1, 1))
Emit\CompilationEmitTests.vb (1)
4465BC37256: An error occurred while writing the output file: <%= output.ThrownException.ToString() %>
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
186CodeAnalysisEventSource.Log.DisposeAssemblyLoadContextException(context.Directory, ex.ToString());
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
Storage\StorageDatabaseLogger.cs (2)
32_reportedExceptionMessage = ex.ToString(); 44m[Reason] = ex.ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
53message += Environment.NewLine + exception.ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
42Environment.FailFast(exception.ToString(), exception);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
255s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Logging\TestOutputLoggerProvider.cs (1)
35testOutputHelper.WriteLine(exception.ToString());
Microsoft.DotNet.Build.Tasks.Packaging (3)
GenerateNuSpec.cs (1)
102Log.LogError(ex.ToString());
NuGetUtility.cs (2)
49logger.Log(LogLevel.Error, "Encountered Connection Issue: " + e.ToString() + ", retries exhausted"); 52logger.Log(LogLevel.Information, "Encountered Connection Issue: " + e.ToString() + ", retrying...");
Microsoft.DotNet.Build.Tasks.Workloads (1)
VisualStudioWorkloadTaskBase.wix.cs (1)
109Log.LogError(e.ToString());
Microsoft.DotNet.Helix.Sdk (2)
AzureDevOpsTask.cs (2)
100Log.LogError(FailureCategory.Helix, ex.ToString()); 116Log.LogError(FailureCategory.Helix, ex.ToString());
Microsoft.DotNet.NuGetRepack.Tests (3)
VersionUpdaterTests.cs (3)
147}, e2.InnerExceptions.Select(i => i.ToString())); 154}, e3.InnerExceptions.Select(i => i.ToString())); 161}, e4.InnerExceptions.Select(i => i.ToString()));
Microsoft.DotNet.SignCheckTask (1)
src\SignCheck.cs (1)
456Log.WriteError(e.ToString());
Microsoft.Extensions.AI.Evaluation (1)
CompositeEvaluator.cs (1)
147string message = ex.ToString();
Microsoft.Extensions.DependencyInjection (1)
DependencyInjectionEventSource.cs (1)
138ServiceRealizationFailed(exception.ToString(), serviceProviderHashCode);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummary.cs (1)
14/// to represent values that are highly variable, such as the result of <see cref="Exception.ToString"/>.
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLogger.cs (1)
64builder.AppendLine(exception.ToString());
Microsoft.Extensions.Logging.Console (3)
JsonConsoleFormatter.cs (1)
51WriteInternal(scopeProvider, textWriter, message, logEntry.LogLevel, logEntry.Category, logEntry.EventId.Id, logEntry.Exception?.ToString(),
SimpleConsoleFormatter.cs (1)
64WriteInternal(scopeProvider, textWriter, message, logEntry.LogLevel, logEntry.EventId.Id, logEntry.Exception?.ToString(), logEntry.Category, GetCurrentDateTime());
SystemdConsoleFormatter.cs (1)
54WriteInternal(scopeProvider, textWriter, message, logEntry.LogLevel, logEntry.Category, logEntry.EventId.Id, logEntry.Exception?.ToString(), GetCurrentDateTime());
Microsoft.Extensions.Logging.EventSource (1)
ExceptionInfo.cs (1)
25VerboseMessage = exception.ToString();
Microsoft.Extensions.Telemetry (1)
Logging\LoggingEventSource.cs (1)
17LoggingException(ex.ToString());
Microsoft.JSInterop.Tests (4)
Infrastructure\DotNetDispatcherTest.cs (4)
731Assert.Contains(nameof(ThrowingClass.ThrowingMethod), jsRuntime.LastCompletionResult.Exception.ToString()); 753Assert.Contains(nameof(ThrowingClass.AsyncThrowingMethod), jsRuntime.LastCompletionResult.Exception.ToString()); 771Assert.Contains("JsonReaderException: '<' is an invalid start of a value.", exception.ToString()); 787Assert.StartsWith("System.ArgumentException: There is no tracked object with id '1'. Perhaps the DotNetObjectReference instance was already disposed.", exception.ToString());
Microsoft.JSInterop.WebAssembly (1)
WebAssemblyJSRuntime.cs (1)
90: dispatchResult.Exception!.ToString();
Microsoft.Maui.Controls.Xaml (1)
XamlParser.cs (1)
355 Debug.WriteLine($"Failed to parse Assembly Attribute: {ex.ToString()}");
Microsoft.Maui.Resizetizer (4)
AsyncTaskExtensions.cs (1)
25 asyncTask.LogCodedError("MAUI0000", exc.ToString());
GenerateSplashAndroidResources.cs (1)
55 Log.LogError(null, "MAUI0000", null, null, 0, 0, 0, 0, ex.ToString());
GenerateSplashStoryboard.cs (1)
51 Log.LogError(null, "MAUI0000", null, null, 0, 0, 0, 0, ex.ToString());
MauiAsyncTask.cs (1)
27 LogCodedError("MAUI0000", exc.ToString());
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
285throw Host.Except(e, $"Error initializing model :{e.ToString()}");
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1334TypeOf ex Is InvalidCastException), "Unexpected exception: " & ex.ToString())
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (1)
127Return MyBase.ToString() & " " & SR.Format(SR.TextFieldParser_MalformedExtraData, LineNumber.ToString(CultureInfo.InvariantCulture))
Microsoft.VisualBasic.IntegrationTests (2)
InteractionTests.cs (2)
30_ = Assert.Throws<ArgumentException>(() => Interaction.AppActivate(GetUniqueName())).ToString(); 101_ = Assert.Throws<ArgumentNullException>(() => Interaction.Shell(null)).ToString();
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
60_ = ex.ToString(); // ensure message can be formatted
Microsoft.VisualStudio.LanguageServices (1)
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
29return exception.ToString();
MSBuild (9)
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
InitializationException.cs (1)
149errorMessage += Environment.NewLine + e.ToString();
InterningBinaryReader.cs (1)
173Debug.Assert(false, e.ToString());
XMake.cs (6)
995Console.WriteLine(e.InnerException.ToString()); 1012Console.WriteLine(e.InnerException.ToString()); 1036Console.WriteLine(e.InnerException.ToString()); 1059Console.WriteLine("{0}\r\n{1}", AssemblyResources.GetString("FatalError"), e.ToString()); 1061Console.WriteLine("This is an unhandled exception in MSBuild Engine -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM.\r\n{0}", e.ToString()); 1692Console.WriteLine(exception.ToString());
MSBuildTaskHost (5)
BuildExceptionBase.cs (2)
43public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
ExceptionHandling.cs (1)
369writer.WriteLine(ex.ToString());
InternalErrorException.cs (1)
113string innerMessage = (innerException == null) ? String.Empty : innerException.ToString();
InterningBinaryReader.cs (1)
173Debug.Assert(false, e.ToString());
OpenIdConnectSample (1)
Startup.cs (1)
133return c.Response.WriteAsync(c.Exception.ToString());
PresentationCore (5)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (5)
151Debug.WriteLine("WorkerOperationGetTabletsInfo.OnDoWork failed due to: {0}{1}", Environment.NewLine, e.ToString()); 207Debug.WriteLine("WorkerOperationCreateContext.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 314Debug.WriteLine("WorkerOperationRefreshCursorInfo.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 356Debug.WriteLine("WorkerOperationGetTabletInfo.OnDoWork failed due to {0}{1}", Environment.NewLine, e.ToString()); 396Debug.WriteLine("WorkerOperationWorkerGetUpdatedSizes.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
PresentationFramework (2)
MS\Internal\Controls\ActiveXSite.cs (2)
213Debug.Fail(t.ToString()); 356Debug.Fail(t.ToString());
ReachFramework (1)
AlphaFlattener\Flattener.cs (1)
1071Console.WriteLine(e.ToString());
Roslyn.VisualStudio.DiagnosticsWindow (1)
Panels\WorkspacePanel.xaml.cs (1)
52return e.ToString();
RunTests (1)
Program.cs (1)
210ConsoleUtil.WriteLine(ex.ToString());
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
144errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variation, ex.ToString()));
Security.TransportSecurity.IntegrationTests (10)
Https\HttpsTests.4.1.0.cs (8)
96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
Https\HttpsTests.4.1.1.cs (1)
112communicationException.ToString()));
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
111communicationException.ToString()));
ServerComparison.TestSites (1)
StartupNtlmAuthentication.cs (1)
43await context.Response.WriteAsync(ex.ToString());
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
108Debug.Fail(t.ToString());
System.Composition.Hosting (7)
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (1)
45Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
25Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (1)
51Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (2)
64Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString()); 102Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\LifetimeContext.cs (1)
96Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
88Debug.WriteLine(SR.Diagnostic_ThrowingException, ex.ToString());
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (1)
592exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionStackTraceTag, exception.ToString()));
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
475collectionError: e => Parent.Error(sessionId, e.ToString()), 478observableInstrumentCallbackError: e => Parent.ObservableInstrumentCallbackError(sessionId, e.ToString())); 656Parent.Error(_sessionId, e.ToString());
System.Net.Http (1)
System\Net\Http\HttpTelemetry.cs (1)
86RequestFailedDetailed(exception: exception.ToString());
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetEventSource.NetworkInformation.cs (1)
19Log.ErrorMessage(memberName ?? "(?)", exception.ToString());
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
419Debug.Fail("Unexpected exception while transferring SafeBioHandle ownership to SafeSslHandle", exc.ToString());
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
247Environment.FailFast("Exception thrown from SocketAsyncEngine event loop: " + e.ToString(), e);
System.Net.WebSockets (1)
System\Net\WebSockets\NetEventSource.WebSockets.cs (1)
88=> Trace(obj, exception.ToString(), memberName);
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
369text.Append(base.ToString()); 378text.Append(_innerExceptions[i].ToString());
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
101s += InnerExceptionPrefix + InnerException.ToString();
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
117s.Append(innerException.ToString());
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
193payload = "XplatEventLogger failed with Exception " + ex.ToString();
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
128string innerExceptionString = _innerException?.ToString() ?? "";
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
463Debug.Fail(e.ToString());
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
58s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString();
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
81s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString();
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (2)
55string baseValue = isMessage ? base.Message : base.ToString(); 68text.AppendLine().Append(isMessage ? e.Message : e.ToString());
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
65s.Append(Environment.NewLineConst + InnerExceptionPrefix).Append(innerException.ToString());
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
64s += Environment.NewLineConst + InnerExceptionPrefix + innerException.ToString();
src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (1)
68public override string ToString() => base.ToString();
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
335Debug.WriteLine(ex.ToString());
System.Private.Xml (1)
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
144w.WriteElementString("Exception", null, e.ToString());
System.Security.Permissions (1)
System\Security\HostProtectionException.cs (1)
81sb.Append(base.ToString());
System.ServiceModel.Primitives.Tests (2)
Channels\CustomBindingTest.cs (1)
35Assert.Fail(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
ServiceModel\DuplexChannelFactoryTest.cs (1)
110string.Format("InvalidOperationException exception string should contain 'BasicHttpBinding'. Actual message:\r\n" + exception.ToString()));
System.Threading.Tasks.Dataflow (1)
Internal\DataflowEtwProvider.cs (1)
143try { exceptionData = string.Join(Environment.NewLine, completionTask.Exception!.InnerExceptions.Select(static e => e.ToString())); }
System.Transactions.Local (13)
System\Transactions\TransactionException.cs (6)
27etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionException, message, innerException == null ? string.Empty : innerException.ToString()); 47etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, messagewithTxId, innerException == null ? string.Empty : innerException.ToString()); 57etwLog.TransactionExceptionTrace(traceSource, TransactionExceptionType.InvalidOperationException, message, innerException == null ? string.Empty : innerException.ToString()); 168etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionAbortedException, message, innerException == null ? string.Empty : innerException.ToString()); 245etwLog.TransactionExceptionTrace(traceSource, TransactionExceptionType.TransactionInDoubtException, message, innerException == null ? string.Empty : innerException.ToString()); 299etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionManagerCommunicationException, message, innerException == null ? string.Empty : innerException.ToString());
System\Transactions\TransactionManager.cs (2)
189etwLog.TransactionExceptionTrace(TraceSourceType.TraceSourceBase, TransactionExceptionType.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e.ToString()); 197etwLog.TransactionExceptionTrace(TraceSourceType.TraceSourceBase, TransactionExceptionType.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e.ToString());
System\Transactions\TransactionsEtwProvider.cs (4)
925ExceptionConsumedBase(exception.ToString()); 928ExceptionConsumedLtm(exception.ToString()); 931ExceptionConsumedOleTx(exception.ToString()); 943ExceptionConsumedLtm(exception.ToString());
System\Transactions\TransactionState.cs (1)
303etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, e.ToString());
System.Web.Services.Description (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
152TraceEvent(eventType, SR.Format(SR.TraceExceptionDetails, e.ToString()));
System.Windows.Forms (36)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
151Debug.Fail(t.ToString());
System\Windows\Forms\ActiveX\AxHost.cs (5)
1460Debug.Fail(t.ToString()); 1607Debug.Fail(t.ToString()); 2882Debug.Fail(t.ToString()); 2899Debug.Fail(t.ToString()); 3378Debug.Fail(t.ToString());
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (1)
28_ => base.ToString(),
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
525Debug.Fail(ex.ToString());
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1085errorString = e.ToString(); 1105Debug.Fail("Unexpected failure reading property", ex.ToString());
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (3)
216Debug.Fail("Failed to free BSTR array memory", ex.ToString()); 234Debug.Fail($"Failed to marshal component attribute VARIANT {i}", ex.ToString()); 244Debug.Fail("Failed to free VARIANT array memory", ex.ToString());
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
504Debug.Fail($"Failed to create TypeConverter of type '{attribute.ConverterTypeName}' from Attribute", ex.ToString()); 544Debug.Fail($"Failed to create editor of type '{attribute.EditorTypeName}' from Attribute", ex.ToString());
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2925Debug.Fail("Exception occurred attempting to setup custom draw. Disabling custom draw for this control", e.ToString()); 6026Debug.Fail("Exception occurred attempting to setup header custom draw. Disabling custom draw for the column header", e.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
239Debug.Fail(ex.ToString()); 1551Debug.Fail("Bad tab. We're going to remove it.", e.ToString()); 2037Debug.Fail("Bad Tab. Disable for now.", e.ToString()); 3506Debug.Fail("Bad Tab. It's going away.", e.ToString()); 3936Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1447Debug.Fail($"Bad Type Converter! {t.GetType().Name}, {t.Message},{converter}", t.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionEditor.cs (1)
30message = ex.ToString();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
950Debug.Fail(e.ToString()); 1136Debug.Fail(ex.ToString()); 1181Debug.Fail(ex.ToString()); 1687Debug.Fail(ex.ToString()); 1753Debug.Fail(e.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (2)
269Debug.Fail(ex.ToString()); 300Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1746Debug.Fail("Failed to edit proc operation.", e.ToString());
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2876Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
342Debug.Fail(t.ToString());
System\Windows\Forms\Design\ComponentEditorForm.ComponentEditorPageSite.cs (1)
42Debug.Fail(e.ToString());
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
175detailsTextBuilder.AppendLine(t.ToString());
System.Windows.Forms.Design (12)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
160message = e.ToString();
System\Windows\Forms\Design\CommandSet.cs (1)
547Debug.Fail("Commands may be disabled, the location property was not accessible", e.ToString());
System\Windows\Forms\Design\ComponentTray.cs (1)
843message = e.ToString();
System\Windows\Forms\Design\ControlDesigner.cs (2)
430message = e.ToString(); 2250string exceptionText = ex.ToString();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
713message = ex.ToString();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
197message = ex.ToString();
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
214exceptionMessage = ex.InnerException.ToString(); 219exceptionMessage = ex.ToString();
System\Windows\Forms\Design\SelectionUIService.cs (3)
134message = e.ToString(); 1035Debug.Fail("Drag handler threw during BeginDrag -- bad handler!", e.ToString()); 1142Debug.Fail(e.ToString());
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
459.Setup(e => e.ToString())
System.Windows.Forms.UI.IntegrationTests (1)
Infra\DataCollectionService.cs (1)
174exceptionDetails.AppendLine(ex.ToString());
Templates.Blazor.Tests (13)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
Templates.Blazor.WebAssembly.Auth.Tests (15)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
25builder.AppendLine(exception.ToString());
src\Shared\E2ETesting\WaitAssert.cs (1)
164Console.WriteLine($"Failed to take a screenshot {ex.ToString()}");
Templates.Blazor.WebAssembly.Tests (15)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
25builder.AppendLine(exception.ToString());
src\Shared\E2ETesting\WaitAssert.cs (1)
164Console.WriteLine($"Failed to take a screenshot {ex.ToString()}");
Templates.Mvc.Tests (15)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
25builder.AppendLine(exception.ToString());
src\Shared\E2ETesting\WaitAssert.cs (1)
164Console.WriteLine($"Failed to take a screenshot {ex.ToString()}");
Templates.Tests (15)
src\Shared\CertificateGeneration\CertificateManager.cs (13)
139Log.ListCertificatesError(e.ToString()); 239Log.CorrectCertificateStateError(e.ToString()); 278Log.CreateDevelopmentCertificateError(e.ToString()); 291Log.SaveCertificateInStoreError(e.ToString()); 311Log.CorrectCertificateStateError(e.ToString()); 341Log.ExportCertificateError(e.ToString()); 430Log.LoadCertificateError(e.ToString()); 455Log.SaveCertificateInStoreError(e.ToString()); 585Log.ExportCertificateError(e.ToString()); 608Log.WriteCertificateToDiskError(ex.ToString()); 636Log.WritePemKeyToDiskError(ex.ToString()); 726Log.TrustCertificateError(ex.ToString()); 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
25builder.AppendLine(exception.ToString());
src\Shared\E2ETesting\WaitAssert.cs (1)
164Console.WriteLine($"Failed to take a screenshot {ex.ToString()}");
TestDiscoveryWorker (1)
Program.cs (1)
109Console.WriteLine(ex.ToString());
TestProject.IntegrationServiceA (3)
Postgres\NpgsqlEFCoreExtensions.cs (1)
22return Results.Problem(e.ToString());
Postgres\PostgresExtensions.cs (1)
27return Results.Problem(e.ToString());
Redis\RedisExtensions.cs (1)
28return Results.Problem(e.ToString());
UnitTests.Common (2)
TestHelpers.cs (2)
106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString())); 214prefix, ex.ToString()));