Base:
method
ToString
System.Object.ToString()
19 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)
42public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\SyncNamespace\SyncNamespaceDocumentsNotInSolutionException.cs (1)
15public override string ToString()
Microsoft.TestPlatform.CommunicationUtilities (2)
Json\Jsonite\Jsonite.cs (1)
1404public override string ToString()
Serialization\ExceptionConverter.cs (1)
126public override string ToString()
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (1)
126Public Overrides Function ToString() As String
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
366public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
96public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
54public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
51public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
74public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
51public override string ToString() => CreateString(isMessage: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
50public override string ToString()
src\runtime\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.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSException.cs (1)
102public override string ToString()
System.Security.Permissions (1)
System\Security\HostProtectionException.cs (1)
78public override string ToString()
System.ServiceModel.Primitives (1)
System\ServiceModel\FaultException.cs (1)
423public override string ToString()
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (1)
23public override string ToString() => _kind switch
494 references to ToString
aspire (13)
Certificates\CertificateGeneration\CertificateManager.cs (13)
202Log.ListCertificatesError(e.ToString()); 346Log.CorrectCertificateStateError(e.ToString()); 385Log.CreateDevelopmentCertificateError(e.ToString()); 399Log.SaveCertificateInStoreError(e.ToString()); 424Log.CorrectCertificateStateError(e.ToString()); 454Log.ExportCertificateError(e.ToString()); 570Log.LoadCertificateError(e.ToString()); 595Log.SaveCertificateInStoreError(e.ToString()); 730Log.ExportCertificateError(e.ToString()); 753Log.WriteCertificateToDiskError(ex.ToString()); 781Log.WritePemKeyToDiskError(ex.ToString()); 886Log.TrustCertificateError(ex.ToString()); 1014Log.RemoveCertificateFromUserStoreError(ex.ToString());
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
228Console.Error.WriteLine(ex.ToString());
Aspire.Cli.EndToEnd.Tests (1)
StartStopTests.cs (1)
209primaryFailure.Data["LinkedWorktreeCleanupFailure"] = cleanupFailure.ToString();
Aspire.Cli.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
1017Console.Error.WriteLine(ex.ToString()); 1058Console.Error.WriteLine(ex.ToString());
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)
246|| !string.Equals(checkReportSnapshot.ExceptionText, value.Exception?.ToString(), StringComparisons.HealthReportPropertyValue)) 293var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString())
Aspire.Hosting.Azure.Tests (1)
AzureFrontDoorTests.cs (1)
130Assert.Contains("does not have an external HTTP or HTTPS endpoint", exception.ToString());
Aspire.Hosting.JavaScript.Tests (1)
AddViteAppTests.cs (1)
1102Assert.Contains("output: \"standalone\"", ex.ToString());
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
981exception.ToString()); 1017exception.ToString());
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Hosting.Tests (1)
Dashboard\DashboardEventHandlersTests.cs (1)
925Exception = new InvalidOperationException("Error!").ToString(),
Aspire.Hosting.TestUtilities (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.Playground.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
86lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (1)
268connectAttemptActivity.AddTag("exception.stacktrace", ex.ToString());
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.1.0.cs (2)
411exception.ToString())); 458exception.ToString()));
CodeStyleConfigFileGenerator (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.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());
dotnet (21)
Commands\Run\Api\RunApiCommand.cs (1)
40Respond(new RunApiOutput.Error { Message = ex.Message, Details = ex.ToString() });
Commands\Run\VirtualProjectBuildingCommand.cs (1)
316e.ToString().Red().Bold() :
Commands\Test\MTP\TestApplication.cs (3)
620var exAsString = ex.ToString(); 801string exAsString = ex.ToString(); 1134messageBuilder.AppendLine(ex.ToString());
Commands\Test\MTP\TestApplicationActionQueue.cs (1)
113var exAsString = ex.ToString();
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
329verboseMessages: [ex.ToString()], 351verboseMessages: [ex.ToString()],
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
69verboseMessages: [ex.ToString()],
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
258packageId.ToString(), toolPackageException.ToString()), null);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
88verboseMessages: [ex.ToString()],
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
320verbosity.IsDetailedOrDiagnostic() ? e.ToString() : e.Message).Yellow());
Commands\Workload\WorkloadHistoryRecorder.cs (1)
42HistoryRecord.ErrorMessage = ex.ToString();
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
937_verboseLogger.LogWarning(e.ToString());
Parser.cs (4)
373exception.ToString().Red().Bold() : 379exception.ToString().Red().Bold() : 386exception.ToString().Red().Bold() : 393exception.ToString().Red().Bold() :
Program.cs (2)
107? e.ToString().Red().Bold() 120Reporter.Error.WriteLine(e.ToString().Red().Bold());
Telemetry\TelemetryClient.cs (1)
364Debug.Fail(e.ToString());
dotnet-aot (6)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
937_verboseLogger.LogWarning(e.ToString());
src\sdk\src\Cli\dotnet\Parser.cs (4)
373exception.ToString().Red().Bold() : 379exception.ToString().Red().Bold() : 386exception.ToString().Red().Bold() : 393exception.ToString().Red().Bold() :
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (1)
364Debug.Fail(e.ToString());
dotnet-dev-certs (13)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
203Log.ListCertificatesError(e.ToString()); 348Log.CorrectCertificateStateError(e.ToString()); 387Log.CreateDevelopmentCertificateError(e.ToString()); 401Log.SaveCertificateInStoreError(e.ToString()); 426Log.CorrectCertificateStateError(e.ToString()); 456Log.ExportCertificateError(e.ToString()); 572Log.LoadCertificateError(e.ToString()); 597Log.SaveCertificateInStoreError(e.ToString()); 732Log.ExportCertificateError(e.ToString()); 755Log.WriteCertificateToDiskError(ex.ToString()); 783Log.WritePemKeyToDiskError(ex.ToString()); 888Log.TrustCertificateError(ex.ToString()); 1016Log.RemoveCertificateFromUserStoreError(ex.ToString());
dotnet-getdocument (1)
src\aspnetcore\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-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-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-user-secrets (1)
Program.cs (1)
43reporter.Verbose(exception.ToString());
dotnet-watch (2)
Program.cs (2)
68Console.Error.WriteLine(ex.ToString()); 301logger.LogError("An unexpected error occurred: {Exception}", e.ToString());
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
GetDocument.Insider (3)
Commands\GetDocumentCommand.cs (1)
157Reporter.WriteError(ex.ToString());
Commands\GetDocumentCommandWorker.cs (1)
151_reporter.WriteError(ex.ToString());
ProgramBase.cs (1)
62_reporter.WriteError(ex.ToString());
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
552AddTypeValidationError(type, $"due to exception '{ex.ToString()}'");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
156string exString = ex.ToString();
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
156string exString = ex.ToString();
illink (3)
Infrastructure.Common (4)
ServiceUtilHelper.cs (4)
131s_rootCertInstallErrorMessage = ex.ToString(); 224s_clientCertInstallErrorMessage = ex.ToString(); 278s_osXKeychainCertInstallErrorMessage = ex.ToString(); 337s_peerCertInstallErrorMessage = ex.ToString();
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
XunitLoggerProvider.cs (1)
48_output.WriteLine(exception.ToString());
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
85WriteMessage(textWriter, logEntry.Exception.ToString());
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
222? exception.ToString()
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitHost.cs (1)
729return exception.ToString();
Circuits\RemoteErrorBoundaryLogger.cs (1)
35? exception.ToString()
Circuits\RemoteJSRuntime.cs (1)
80errorMessage = invocationResult.Exception.ToString();
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerInstance.cs (1)
170File.WriteAllText(startupPath, exception.ToString());
Microsoft.AspNetCore.Components.WebAssembly (2)
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)
73: invocationResult.Exception.ToString();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (13)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
203Log.ListCertificatesError(e.ToString()); 348Log.CorrectCertificateStateError(e.ToString()); 387Log.CreateDevelopmentCertificateError(e.ToString()); 401Log.SaveCertificateInStoreError(e.ToString()); 426Log.CorrectCertificateStateError(e.ToString()); 456Log.ExportCertificateError(e.ToString()); 572Log.LoadCertificateError(e.ToString()); 597Log.SaveCertificateInStoreError(e.ToString()); 732Log.ExportCertificateError(e.ToString()); 755Log.WriteCertificateToDiskError(ex.ToString()); 783Log.WritePemKeyToDiskError(ex.ToString()); 888Log.TrustCertificateError(ex.ToString()); 1016Log.RemoveCertificateFromUserStoreError(ex.ToString());
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
236sb.AppendLine(errorContext.Exception.ToString()); 262details: errorContext.Exception.ToString(),
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (1)
856Write(errorDetail.Error.ToString());
Microsoft.AspNetCore.Hosting (2)
Internal\WebHost.cs (1)
233Console.WriteLine("Application startup exception: " + ex.ToString());
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
761Write(errorDetail.Error!.ToString());
Microsoft.AspNetCore.InternalTesting (1)
Logging\XunitLoggerProvider.cs (1)
88lines = exception.ToString().Split(NewLineChars, StringSplitOptions.RemoveEmptyEntries);
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\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\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
203Log.ListCertificatesError(e.ToString()); 348Log.CorrectCertificateStateError(e.ToString()); 387Log.CreateDevelopmentCertificateError(e.ToString()); 401Log.SaveCertificateInStoreError(e.ToString()); 426Log.CorrectCertificateStateError(e.ToString()); 456Log.ExportCertificateError(e.ToString()); 572Log.LoadCertificateError(e.ToString()); 597Log.SaveCertificateInStoreError(e.ToString()); 732Log.ExportCertificateError(e.ToString()); 755Log.WriteCertificateToDiskError(ex.ToString()); 783Log.WritePemKeyToDiskError(ex.ToString()); 888Log.TrustCertificateError(ex.ToString()); 1016Log.RemoveCertificateFromUserStoreError(ex.ToString());
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
184Debug.Fail(exception.ToString());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
345Debug.Fail(exception.ToString());
Microsoft.Build (15)
BackEnd\BuildManager\BuildManager.cs (1)
2873loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString());
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
236message += Environment.NewLine + exception.ToString(); 271message += Environment.NewLine + exception.ToString();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
838loggingContext.LogCommentFromText(MessageImportance.Low, ex.ToString()); 848(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(BuildEventFileInfo.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
361throw new SdkResolverException("CouldNotRunNuGetSdkResolver", sdkResolver, sdk, e, MSBuildConstants.NuGetAssemblyPathEnvironmentVariableName, e.ToString()); 366throw new SdkResolverException("SDKResolverFailed", sdkResolver, sdk, e, sdkResolver.Name, sdk.ToString(), e.ToString());
Construction\Solution\SolutionFile.cs (2)
332solutionEx.ToString()); 339ex.ToString());
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
272ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 469ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Instance\TaskFactories\TaskHostTask.cs (1)
660_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString());
Instance\TaskRegistry.cs (2)
1361e.ToString(); 1471ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
151writer.WriteLine(ex.ToString());
Microsoft.Build.Framework (9)
BackEnd\InterningBinaryReader.cs (1)
157Debug.Assert(false, e.ToString());
BuildException\BuildExceptionBase.cs (2)
42public 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());
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FatalError.cs (1)
279s_reportedExceptionMessage = exception.ToString();
Utilities\FileMatcher.cs (2)
3144SR.FormatGlobExpansionFailed(filespecUnescaped, ex.ToString())); 3979SR.FormatGlobExpansionFailed(filespecUnescaped, ex.ToString()));
Microsoft.Build.NuGetSdkResolver (1)
NuGetSdkResolver.cs (1)
246logger.LogError(e.ToString());
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.Build.Tasks.Core (5)
Copy.cs (1)
1033LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, code);
DownloadFile.cs (1)
136Log.LogMessage(MessageImportance.Low, actualException.ToString());
GenerateResource.cs (1)
2676"General.InvalidResxFile", msbuildResXException.InnerException.ToString());
GetSDKReferenceFiles.cs (1)
943_exceptionMessages.Enqueue(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemReadingCacheFile", cacheFile, e.ToString()));
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
151writer.WriteLine(ex.ToString());
Microsoft.Build.Utilities.Core (3)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
151writer.WriteLine(ex.ToString());
ToolTask.cs (2)
1700LogPrivate.LogErrorWithCodeFromResources("General.InvalidToolSwitch", ToolExe, e.ToString()); 1708LogPrivate.LogErrorWithCodeFromResources("ToolTask.CouldNotStartToolExecutable", ToolExe, e.ToString());
Microsoft.CodeAnalysis (8)
CommandLine\CommandLineArguments.cs (2)
502diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_UnableToLoadAnalyzer, analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message); 505diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_AnalyzerCannotBeCreated, e.TypeName ?? "", analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message);
Compilation\Compilation.cs (2)
3358diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? "")); 3595diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? ""));
SourceGeneration\GeneratorDriver.cs (1)
582CodeAnalysisEventSource.Log.GeneratorException(generator.GetGeneratorType().Name, e.ToString());
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
39return exception.ToString();
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.Features (4)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
709: new RudeEditDiagnostic(RudeEditKind.InternalError, span: default, arguments: [filePath, e.ToString()]); 1482diagnosticContext.Report(RudeEditKind.MemberBodyInternalError, cancellationToken, arguments: [newMember.Name, e.ToString()]);
EditAndContinue\Remote\DebuggingSessionProxy.cs (1)
81return EmitSolutionUpdateResults.Data.CreateFromInternalError(solution, e.ToString(), runningProjects);
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
39return exception.ToString();
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
AbstractResxGenerator.cs (1)
250var exceptionLines = ex.ToString().Split([Environment.NewLine], StringSplitOptions.None);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_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.Contracts (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = 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.Cli.Telemetry (5)
Implementation\PersistentStorageTelemetryUploader.cs (1)
117Debug.Fail(e.ToString());
PersistentStorageLogExporter.cs (2)
73Debug.Fail(e.ToString()); 118Debug.Fail(e.ToString());
PersistentStorageTraceExporter.cs (2)
76Debug.Fail(e.ToString()); 126Debug.Fail(e.ToString());
Microsoft.DotNet.Cli.Utils (1)
MSBuildForwardingAppWithoutLogging.cs (1)
222Console.Error.WriteLine(exception.ToString());
Microsoft.DotNet.HotReload.Watch (6)
FileWatcher\EventBasedDirectoryWatcher.cs (1)
40Logger?.Invoke(exception.ToString());
HotReload\RunningProjectsManager.cs (3)
232logger.LogError("Failed to handle runtime rude edit: {Exception}", e.ToString()); 289logger.LogError("Failed to relaunch: {Exception}", e.ToString()); 363logger.LogError("Failed to apply managedCodeUpdates: {Exception}", e.ToString());
Process\RunningProject.cs (1)
94ClientLogger.LogError("Failed to apply updates to process {Process}: {Exception}", process.Id, e.ToString());
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
132Logger.LogError("Failed to read response: {Exception}", e.ToString());
Microsoft.DotNet.HotReload.WebAssembly.Browser (4)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
268Reporter.Report(ex.ToString(), AgentMessageSeverity.Warning);
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (2)
124reporter.Report(e.ToString(), AgentMessageSeverity.Warning); 141reporter.Report(e.ToString(), AgentMessageSeverity.Warning);
WebAssemblyHotReload.cs (1)
125errorMessage = e.ToString();
Microsoft.Extensions.AI.Evaluation (1)
CompositeEvaluator.cs (1)
145string message = ex.ToString();
Microsoft.Extensions.AI.Templates.Tests (1)
XunitLoggerProvider.cs (1)
48_output.WriteLine(exception.ToString());
Microsoft.Extensions.DependencyInjection (1)
DependencyInjectionEventSource.cs (1)
146ServiceRealizationFailed(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.DotNetDeltaApplier (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
268Reporter.Report(ex.ToString(), AgentMessageSeverity.Warning);
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (2)
124reporter.Report(e.ToString(), AgentMessageSeverity.Warning); 141reporter.Report(e.ToString(), AgentMessageSeverity.Warning);
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLogger.cs (1)
64builder.AppendLine(exception.ToString());
Microsoft.Extensions.Logging.Console (3)
JsonConsoleFormatter.cs (1)
50WriteInternal(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.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
104lines = exception.ToString().Split(s_newLineChars, StringSplitOptions.RemoveEmptyEntries);
Microsoft.Extensions.Telemetry (1)
Logging\LoggingEventSource.cs (1)
17LoggingException(ex.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.NET.Build.Containers (1)
Registry\Registry.cs (1)
469_logger.LogTrace("Download attempt {0}/{1} for repository '{2}' failed. Error: {3}", retryCount, MaxDownloadRetries, repository, ex.ToString());
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
GenerateBlazorBootExtensionJson.cs (1)
26Log.LogError(ex.ToString());
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Program.cs (1)
61Console.Error.WriteLine(ex.ToString());
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\GenerateEFSQLScripts.cs (1)
123Log.LogError(e.ToString());
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
CollectStaticWebAssetsToCopy.cs (1)
91Log.LogError(ex.ToString());
ComputeStaticWebAssetsForCurrentProject.cs (1)
81Log.LogError(ex.ToString());
UpdatePackageStaticWebAssets.cs (1)
82Log.LogError(ex.ToString());
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Program.cs (1)
61Console.Error.WriteLine(ex.ToString());
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
453Debug.WriteLine(ex.ToString());
Microsoft.TemplateEngine.Cli (4)
PostActionDispatcher.cs (1)
234Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, e.ToString());
PostActionProcessors\ChmodPostActionProcessor.cs (1)
72Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, ex.ToString());
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
91Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, ex.ToString());
TemplatePackageCoordinator.cs (1)
597Reporter.Verbose.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Verbose_NuGetCredentialServiceError, ex.ToString());
Microsoft.TemplateEngine.Utils (1)
InstallRequestPathResolution.cs (1)
81environmentSettings.Host.Logger.LogDebug("Failed to parse masked path {0}, {1}.", maskedPath, ex.ToString());
Microsoft.TestPlatform.CommunicationUtilities (2)
DataCollectionRequestHandler.cs (1)
393EqtTrace.Error("DataCollectionRequestHandler.HandleAfterTestRunEnd : Error while processing event from testhost: {0}", ex.ToString());
SocketCommunicationManager.cs (1)
205EqtTrace.Error("Connection Failed with error {0}, retrying", ex.ToString());
Microsoft.TestPlatform.CrossPlatEngine (11)
AttachmentsProcessing\TestRunAttachmentsProcessingManager.cs (2)
101eventHandler?.HandleLogMessage(TestMessageLevel.Error, e.ToString()); 196logger.SendMessage(TestMessageLevel.Error, e.ToString());
Client\InProcessProxyDiscoveryManager.cs (1)
73eventHandler.HandleLogMessage(TestMessageLevel.Error, exception.ToString());
Client\InProcessProxyexecutionManager.cs (1)
100eventHandler.HandleLogMessage(TestMessageLevel.Error, exception.ToString());
Client\ProxyDiscoveryManager.cs (2)
172var testMessagePayload = new TestMessagePayload { MessageLevel = TestMessageLevel.Error, Message = exception.ToString() }; 177HandleLogMessage(TestMessageLevel.Error, exception.ToString());
Client\ProxyExecutionManager.cs (1)
259var errorMessage = exception is TestPlatformException ? exception.Message : exception.ToString();
Client\ProxyOperationManager.cs (1)
254throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FailedToLaunchTestHost, ex.ToString()));
DataCollection\ProxyDataCollectionManager.cs (1)
301runEventsHandler?.HandleLogMessage(ObjectModel.Logging.TestMessageLevel.Error, exception.ToString());
Execution\ExecutionManager.cs (2)
117runEventsHandler.HandleLogMessage(TestMessageLevel.Error, e.ToString()); 152runEventsHandler.HandleLogMessage(TestMessageLevel.Error, e.ToString());
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
BlameCollector.cs (3)
610EqtTrace.Warning(ex.ToString()); 611_logger.LogWarning(args.Context, ex.ToString()); 663_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.ToString()));
Microsoft.TestPlatform.PlatformAbstractions (1)
common\Tracing\PlatformEqtTrace.cs (1)
375ErrorOnInitialization = e.ToString();
Microsoft.TestPlatform.Utilities (3)
CodeCoverageDataAttachmentsHandler.cs (1)
117ex.ToString());
InferRunSettingsHelper.cs (2)
393EqtTrace.Error("Error while trying to read legacy settings. Message: {0}", ex.ToString()); 457EqtTrace.Error("Error while trying to read environment variables settings. Message: {0}", ex.ToString());
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
VsTestConsoleRequestSender.cs (2)
820TranslationLayerResources.AbortedTestsRun + " " + exception.ToString()); 905TranslationLayerResources.AbortedTestsRun + " " + exception.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.VisualStudio.TestPlatform.Client (3)
DesignMode\DesignModeClient.cs (3)
489var testMessagePayload = new TestMessagePayload { MessageLevel = TestMessageLevel.Error, Message = ex?.ToString() }; 527var testMessagePayload = new TestMessagePayload { MessageLevel = TestMessageLevel.Error, Message = ex?.ToString() }; 566var testMessagePayload = new TestMessagePayload { MessageLevel = TestMessageLevel.Error, Message = ex?.ToString() };
Microsoft.VisualStudio.TestPlatform.Common (4)
DataCollection\DataCollectionAttachmentManager.cs (2)
286ex.ToString(), 317e.ToString());
ExtensionFramework\TestPluginDiscoverer.cs (1)
146EqtTrace.Warning("TestPluginDiscoverer: Failed to get types searching for 'TestPlatformExtensionVersionAttribute' from assembly '{0}'. Error: {1}", assembly.FullName, e.ToString());
Utilities\MetadataReaderHelper.cs (1)
191log.AppendLine(current.ToString());
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
332ex.ToString());
Microsoft.Win32.SystemEvents (2)
Microsoft\Win32\SystemEvents.cs (2)
1128Debug.Fail("Exception occurred while freeing memory: " + e.ToString()); 1231Debug.Fail("Unexpected thread exception in system events window thread proc", e.ToString());
MSBuild (10)
CommandLine\CommandLineParser.cs (1)
188var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out string errorCode, out _, "LoggingArgsEnvVarError", ex.ToString());
InitializationException.cs (2)
150errorMessage += Environment.NewLine + e.ToString(); 177errorMessage += Environment.NewLine + e.ToString();
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
151writer.WriteLine(ex.ToString());
XMake.cs (6)
1241Console.WriteLine(e.InnerException.ToString()); 1259Console.WriteLine(e.InnerException.ToString()); 1290Console.WriteLine(e.InnerException.ToString()); 1317Console.WriteLine("{0}\r\n{1}", AssemblyResources.GetString("FatalError"), e.ToString()); 1319Console.WriteLine("This is an unhandled exception in MSBuild Engine -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM.\r\n{0}", e.ToString()); 1992Console.WriteLine(exception.ToString());
NuGet.Build.Tasks.Console (3)
Program.cs (3)
130Message = string.Format(CultureInfo.CurrentCulture, Strings.Error_StaticGraphUnhandledException, e.ToString()), 269LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentsParsingFailedExceptionReadingStream, e.Message, e.ToString()); 297LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentsParsingFailedExceptionReadingStream, e.Message, e.ToString());
NuGet.CommandLine.XPlat (5)
Commands\ConfigCommands\ConfigCommand.cs (2)
21log.LogError(e.ToString()); 29log.LogVerbose(e.ToString());
Commands\Package\Download\PackageDownloadRunner.cs (1)
173logger.LogError(ex.ToString());
Program.cs (2)
201log.LogError(e.ToString()); 209log.LogVerbose(e.ToString());
NuGet.Common (1)
ExceptionUtilities.cs (1)
52logger.Log(LogMessage.Create(stackLevel, unwrappedException.ToString()));
NuGet.Credentials (1)
SecurePluginCredentialProvider.cs (1)
123_logger.LogDebug(creationResult.Exception.ToString());
NuGet.PackageManagement (1)
Utility\PackageGraphAnalysisUtilities.cs (1)
68logger.LogWarning(e.ToString());
NuGet.Packaging (5)
Signing\Signatures\Signature.cs (1)
171issues.Add(SignatureLog.DebugLog(e.ToString()));
Signing\Utility\VerificationUtility.cs (1)
128issues.Add(SignatureLog.DebugLog(e.ToString()));
Signing\Verification\IntegrityVerificationProvider.cs (1)
41issues.Add(SignatureLog.DebugLog(e.ToString()));
Signing\Verification\PackageSignatureVerifier.cs (2)
65SignatureLog.DebugLog(e.ToString()) 77SignatureLog.DebugLog(e.ToString())
NuGet.Protocol (1)
Plugins\PluginFactory.cs (1)
416e.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());
RepoTasks (13)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
203Log.ListCertificatesError(e.ToString()); 348Log.CorrectCertificateStateError(e.ToString()); 387Log.CreateDevelopmentCertificateError(e.ToString()); 401Log.SaveCertificateInStoreError(e.ToString()); 426Log.CorrectCertificateStateError(e.ToString()); 456Log.ExportCertificateError(e.ToString()); 572Log.LoadCertificateError(e.ToString()); 597Log.SaveCertificateInStoreError(e.ToString()); 732Log.ExportCertificateError(e.ToString()); 755Log.WriteCertificateToDiskError(ex.ToString()); 783Log.WritePemKeyToDiskError(ex.ToString()); 888Log.TrustCertificateError(ex.ToString()); 1016Log.RemoveCertificateFromUserStoreError(ex.ToString());
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
44Environment.FailFast(exception.ToString(), exception);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
282s_reportedExceptionMessage = exception.ToString();
rzc (1)
DefaultExtensionDependencyChecker.cs (1)
52_error.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()));
sdk-tasks (1)
ZipFileCreateFromDirectory.cs (1)
108Log.LogMessage(MessageImportance.Low, e.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()));
SelectTests (1)
Program.cs (1)
523sb.AppendLine(ex.ToString());
System.CommandLine (1)
Invocation\InvocationPipeline.cs (1)
149error.WriteLine(exception.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)
601exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionStackTraceTag, exception.ToString()));
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
499collectionError: e => Parent.Error(sessionId, e.ToString()), 502observableInstrumentCallbackError: e => Parent.ObservableInstrumentCallbackError(sessionId, e.ToString())); 697Parent.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\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
607Debug.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 (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
369text.Append(base.ToString()); 378text.Append(_innerExceptions[i].ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
107s += InnerExceptionPrefix + InnerException.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
117s.Append(innerException.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
128string innerExceptionString = _innerException?.ToString() ?? "";
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
464Debug.Fail(e.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
62s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
62s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
85s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString();
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
65s.Append(Environment.NewLineConst + InnerExceptionPrefix).Append(innerException.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
64s += Environment.NewLineConst + InnerExceptionPrefix + innerException.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (1)
68public override string ToString() => base.ToString();
System\RuntimeExceptionHelpers.cs (1)
290Internal.Console.Error.Write(exception.ToString());
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
453Debug.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 (14)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
80new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
Internals\System\Runtime\ExceptionTrace.cs (12)
39WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 46WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 53WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 69WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 76WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 83WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 273TraceCore.HandledExceptionError(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 278TraceCore.HandledExceptionWarning(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 283TraceCore.HandledExceptionVerbose(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 288TraceCore.HandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 295TraceCore.UnhandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 309TraceCore.ThrowingException(_diagnosticTrace, eventSource, exception != null ? exception.ToString() : string.Empty, exception);
System\ServiceModel\Dispatcher\ErrorBehavior.cs (1)
192WcfEventSource.Instance.ServiceException(error.ToString(), error.GetType().FullName);
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)
140try { 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)
188etwLog.TransactionExceptionTrace(TraceSourceType.TraceSourceBase, TransactionExceptionType.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e.ToString()); 196etwLog.TransactionExceptionTrace(TraceSourceType.TraceSourceBase, TransactionExceptionType.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e.ToString());
System\Transactions\TransactionsEtwProvider.cs (4)
919ExceptionConsumedBase(exception.ToString()); 922ExceptionConsumedLtm(exception.ToString()); 925ExceptionConsumedOleTx(exception.ToString()); 937ExceptionConsumedLtm(exception.ToString());
System\Transactions\TransactionState.cs (1)
303etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, 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)
1457Debug.Fail(t.ToString()); 1604Debug.Fail(t.ToString()); 2879Debug.Fail(t.ToString()); 2896Debug.Fail(t.ToString()); 3375Debug.Fail(t.ToString());
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (1)
28_ => base.ToString(),
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
528Debug.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)
2935Debug.Fail("Exception occurred attempting to setup custom draw. Disabling custom draw for this control", e.ToString()); 6106Debug.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)
245Debug.Fail(ex.ToString()); 1598Debug.Fail("Bad tab. We're going to remove it.", e.ToString()); 2087Debug.Fail("Bad Tab. Disable for now.", e.ToString()); 3559Debug.Fail("Bad Tab. It's going away.", e.ToString()); 3983Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1444Debug.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)
973Debug.Fail(e.ToString()); 1159Debug.Fail(ex.ToString()); 1204Debug.Fail(ex.ToString()); 1710Debug.Fail(ex.ToString()); 1776Debug.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)
1773Debug.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)
541Debug.Fail("Commands may be disabled, the location property was not accessible", e.ToString());
System\Windows\Forms\Design\ComponentTray.cs (1)
837message = e.ToString();
System\Windows\Forms\Design\ControlDesigner.cs (2)
430message = e.ToString(); 2250string exceptionText = ex.ToString();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
704message = 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)
131message = e.ToString(); 1029Debug.Fail("Drag handler threw during BeginDrag -- bad handler!", e.ToString()); 1133Debug.Fail(e.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()));
vstest.console (1)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
278EqtTrace.Error("TestCaseFilter.FilterTests : Exception during filtering : {0}", ex.ToString());
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
278EqtTrace.Error("TestCaseFilter.FilterTests : Exception during filtering : {0}", ex.ToString());