Base:
property
Message
System.Exception.Message
2 overrides of Message
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
71public override string Message
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
90public override string Message
261 references to Message
Aspire.Azure.AI.Inference.Tests (6)
AspireAzureAIInferenceEmbeddingsExtensionTests.cs (3)
176Assert.Contains("multiple deployment/model keys", ex.Message); 177Assert.Contains(key1, ex.Message); 178Assert.Contains(key2, ex.Message);
AspireAzureAIInferenceExtensionTests.cs (3)
176Assert.Contains("multiple deployment/model keys", ex.Message); 177Assert.Contains(key1, ex.Message); 178Assert.Contains(key2, ex.Message);
Aspire.Dashboard.Tests (1)
Model\Serialization\OtlpJsonProtobufConverterTests.cs (1)
78Assert.Contains("even length", exception.Message);
Aspire.Hosting (1)
ExternalServiceResource.cs (1)
73message = exception.Message;
Aspire.Hosting.Azure.Tests (12)
AzureEnvironmentResourceExtensionsTests.cs (1)
4900Assert.Equal("Resource name 'azure_environment' is invalid. Name must contain only ASCII letters, digits, and hyphens. (Parameter 'name')", ex.Message);
AzureKeyVaultTests.cs (5)
303Assert.Contains("Secret name", exception.Message); 320Assert.Contains("Secret name can only contain", exception.Message); 351Assert.Contains("cannot be longer than 127 characters", exception.Message); 541Assert.Contains("is not a valid AzureKeyVaultRole value", exception.Message); 556Assert.Contains("is not a valid AzureKeyVaultRole value", exception.Message);
AzureNetworkSecurityGroupExtensionsTests.cs (1)
214Assert.Contains("allow-https", exception.Message, StringComparison.OrdinalIgnoreCase);
AzureNetworkSecurityPerimeterExtensionsTests.cs (2)
187Assert.Contains("allow-my-ip", exception.Message, StringComparison.OrdinalIgnoreCase); 202Assert.Contains("storage-assoc", exception.Message, StringComparison.OrdinalIgnoreCase);
AzureOpenAIExtensionsTests.cs (2)
151Assert.Contains("is not a valid AzureOpenAIRole value", exception.Message); 166Assert.Contains("is not a valid AzureOpenAIRole value", exception.Message);
AzureWebPubSubExtensionsTests.cs (1)
20Assert.StartsWith("Resource name 'a_b_c' is invalid.", ex.Message);
Aspire.Hosting.Docker.Tests (2)
EnvVarEscaperTests.cs (2)
67Assert.Contains("exceeds maximum allowed length", ex.Message); 76Assert.Contains("exceeds maximum allowed length", ex.Message);
Aspire.Hosting.GitHub.Models.Tests (1)
GitHubModelsExtensionTests.cs (1)
240Assert.Contains("The API key parameter must be marked as secret", exception.Message);
Aspire.Hosting.Kubernetes (2)
KubernetesHelmChartExtensions.cs (2)
470$"Set an explicit release name via WithReleaseName(...). {ex.Message}", 485$"Set an explicit namespace via WithNamespace(...). {ex.Message}",
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
247Assert.Contains("Cannot set nested manifest field 'spec.replicas' because 'spec' already has a scalar value.", exception.Message);
Aspire.Hosting.OpenAI.Tests (1)
OpenAIExtensionTests.cs (1)
182Assert.Contains("The API key parameter must be marked as secret", exception.Message);
Aspire.Hosting.Python.Tests (2)
PythonPublicApiTests.cs (2)
185exception.Message); 327exception.Message);
Aspire.Hosting.Radius.Tests (3)
Secrets\AddRadiusSecretStoreTests.cs (3)
277Assert.Contains("ASPIRERADIUS067", ex.Message); 287Assert.Contains("ASPIRERADIUS067", ex.Message); 301Assert.Contains("ASPIRERADIUS067", ex.Message);
Aspire.Hosting.RemoteHost (3)
Ats\CapabilityDispatcher.cs (3)
583ex.Message); 698var message = ex.Message; 733var message = ex.Message;
Aspire.Hosting.RemoteHost.Tests (12)
ServiceErrorMessageTests.cs (12)
29Assert.Contains("No language support found for: klingon", ex.Message); 30Assert.Contains("Available languages:", ex.Message); 31Assert.Contains("typescript/nodejs", ex.Message); 41Assert.Contains("No code generator found for language: klingon", ex.Message); 42Assert.Contains("Available languages:", ex.Message); 43Assert.Contains("TypeScript", ex.Message, StringComparison.OrdinalIgnoreCase); 53Assert.Contains("No language support found for: typescript/nodejs", ex.Message); 54Assert.Contains("LoaderExceptions", ex.Message); 55Assert.Contains("binary mismatch", ex.Message); 65Assert.Contains("No code generator found for language: TypeScript", ex.Message); 66Assert.Contains("LoaderExceptions", ex.Message); 67Assert.Contains("binary mismatch", ex.Message);
Aspire.Hosting.Testing.Tests (8)
TestingBuilderTests.cs (1)
639Assert.Equal("ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL must contain a local loopback address.", ex.Message);
TestingPublicApiTests.cs (7)
64exception.Message); 261exception.Message); 305exception.Message); 349exception.Message); 409exception.Message); 439exception.Message); 483exception.Message);
Aspire.Hosting.Tests (37)
AddParameterTests.cs (4)
181Assert.Equal($"A parameter cannot be both secret and published as a default value. (Parameter 'secret')", ex1.Message); 183Assert.Equal($"A parameter cannot be both secret and published as a default value. (Parameter 'secret')", ex2.Message); 193Assert.Equal("A parameter value is required when publishValueAsDefault is true. (Parameter 'publishValueAsDefault')", ex.Message); 205Assert.Contains("A parameter cannot be both secret and published as a default value.", ex.Message);
Dcp\ProcessUtilTests.cs (1)
179Assert.StartsWith("Specify either Arguments or ArgumentList, not both.", exception.Message);
DistributedApplicationBuilderTests.cs (2)
387Assert.Equal($"Resource name '{longName}' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", ex.Message); 413Assert.Equal($"Resource name '{longName}' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", ex.Message);
Eventing\DistributedApplicationBuilderEventingTests.cs (6)
494Assert.Contains("IDistributedApplicationEvent", ex.Message); 495Assert.Contains("concrete", ex.Message); 506Assert.Contains("AbstractDummyEvent", ex.Message); 507Assert.Contains("concrete", ex.Message); 519Assert.Contains("IDistributedApplicationResourceEvent", ex.Message); 520Assert.Contains("concrete", ex.Message);
ExecutableResourceBuilderExtensionTests.cs (3)
162Assert.Equal(CreateAsyncProducerGuardMessage(typeof(Task<ExecutableLaunchConfiguration>), "launchConfigurationProducer"), exception.Message); 175Assert.Equal(CreateAsyncProducerGuardMessage(typeof(ValueTask<ExecutableLaunchConfiguration>), "launchConfigurationProducer"), exception.Message); 334return new ArgumentException(guidance, parameterName).Message;
ExternalServiceTests.cs (4)
65Assert.Contains("invalid", ex.Message, StringComparison.OrdinalIgnoreCase); 75Assert.Contains("absolute", ex.Message, StringComparison.OrdinalIgnoreCase); 535Assert.Contains("fragment", ex.Message, StringComparison.OrdinalIgnoreCase); 547Assert.Contains("query", ex.Message, StringComparison.OrdinalIgnoreCase);
ModelNameTests.cs (9)
16Assert.Equal("Value cannot be null. (Parameter 'name')", exception.Message); 26Assert.Equal($"Resource name '' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", exception.Message); 37Assert.Equal($"Resource name '{name}' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", exception.Message); 47Assert.Equal("Resource name ' ' is invalid. Name must contain only ASCII letters, digits, and hyphens. (Parameter 'name')", exception.Message); 57Assert.Equal("Resource name 'test_name' is invalid. Name must contain only ASCII letters, digits, and hyphens. (Parameter 'name')", exception.Message); 67Assert.Equal("Resource name '-abc' is invalid. Name must start with an ASCII letter. (Parameter 'name')", exception.Message); 77Assert.Equal("Resource name 'test--name' is invalid. Name cannot contain consecutive hyphens. (Parameter 'name')", exception.Message); 87Assert.Equal("Resource name '1abc' is invalid. Name must start with an ASCII letter. (Parameter 'name')", exception.Message); 97Assert.Equal("Resource name 'abc-' is invalid. Name cannot end with a hyphen. (Parameter 'name')", exception.Message);
Pipelines\DistributedApplicationPipelineTests.cs (2)
587Assert.Contains("The dependsOn parameter must be a string or IEnumerable<string>", exception.Message); 598Assert.Contains("The requiredBy parameter must be a string or IEnumerable<string>", exception.Message);
Publishing\DeploymentStateManagerTests.cs (3)
523Assert.Contains("contains invalid characters", exception.Message); 524Assert.Contains("[a-zA-Z0-9_-]+", exception.Message); 550Assert.Contains("contains invalid characters", exception.Message);
StableConnectionStringBuilderTests.cs (2)
154Assert.Contains("Duplicate key", ex.Message); 167Assert.Contains("Invalid segment", ex.Message);
WithProcessCommandTests.cs (1)
688Assert.Contains("At least one process command success exit code must be specified.", exception.Message);
Aspire.Hosting.Yarp.Tests (3)
YarpClusterTests.cs (3)
173Assert.Contains("IValueProvider, string, or Uri", ex.Message); 210Assert.Contains("IValueProvider, string, or Uri", ex.Message); 245Assert.Contains("IValueProvider, string, or Uri", ex.Message);
Aspire.Microsoft.Azure.Cosmos.Tests (2)
AspireMicrosoftAzureCosmosExtensionsTests.cs (2)
44Assert.Contains("missing", e.Message); 45Assert.Contains("AccountEndpoint", e.Message);
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (2)
348Assert.Contains("missing", e.Message); 349Assert.Contains("AccountEndpoint", e.Message);
dotnet (1)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (1)
154throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{ae.Message}.", ae);
dotnet-openapi (2)
Application.cs (1)
74Error.WriteLine(ex.Message);
Commands\AddFileCommand.cs (1)
67Error.Write(ex.Message);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
68throw new ToolOptionException(ae.Message);
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.AspNetCore.InternalTesting (1)
Tracing\EventSourceValidator.cs (1)
96errors.Add(ex.Message);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\HttpUtilities.cs (1)
173throw new InvalidOperationException(ex.Message, ex);
Microsoft.Build (12)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
688log.LogWarningWithCodeFromResources(null, projects[i].ItemSpec, 0, 0, 0, 0, "MSBuild.CannotRebaseOutputItemPath", outputItemFromTarget.ItemSpec, e.Message);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
739ProjectErrorUtilities.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message);
Definition\ProjectCollection.cs (1)
449ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\ToolsetReader.cs (2)
510InvalidToolsetDefinitionException.Throw("ErrorCreatingToolset", toolsVersion.Name, e.Message); 613InvalidToolsetDefinitionException.Throw(ex, "InvalidPropertyNameInToolset", property.Name, property.Source.LocationString, ex.Message);
Evaluation\Evaluator.cs (1)
2629ProjectErrorUtilities.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
290ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message); 487ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Instance\TaskRegistry.cs (1)
411ProjectErrorUtilities.ThrowInvalidProject(projectUsingTaskXml.Location, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message);
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
124string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile", fileName, e.Message);
Logging\FileLogger.cs (1)
223throw new LoggerException(ex.Message, ex.InnerException, "MSB4128", null);
src\msbuild\src\Shared\ResourceUtilities.cs (1)
304InternalError.Throw(e.Message);
Microsoft.Build.Framework (2)
BackEnd\CommunicationsUtilities.cs (1)
557result = HandshakeResult.Failure(HandshakeStatus.EndiannessMismatch, $"Failed to convert the handshake to big-endian. {ex.Message}");
EncodingUtilities.cs (1)
78Debug.Assert(false, "GetEncoding(default OEM encoding) threw an ArgumentException in EncodingUtilities.CurrentSystemOemEncoding! Please log a bug against MSBuild.", ex.Message);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
884throw new ArgumentException(e.Message, "Sources");
Microsoft.Build.Tasks.Core (24)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2853Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
AssignCulture.cs (1)
206Log.LogErrorWithCodeFromResources("AssignCulture.CannotExtractCulture", Files[i].ItemSpec, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (4)
389_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message)); 1062Debug.Fail(ex.Message); 1497_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message)); 1901Debug.Fail(ex.Message);
CombinePath.cs (1)
75Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
ConvertToAbsolutePath.cs (1)
72Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
Copy.cs (3)
527Log.LogErrorWithCodeFromResources("Copy.Error", sourceSpec, destSpec, ex.Message); 693Log.LogErrorWithCodeFromResources("Copy.Error", sourceSpec, destSpec, ex.Message); 933Log.LogErrorWithCodeFromResources("Copy.Error", src, dest, e.Message);
Exec.cs (1)
430Log.LogErrorWithCodeFromResources("Exec.InvalidRegex", regularExpression, ex.Message);
FindAppConfigFile.cs (1)
146Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
FindInList.cs (1)
121Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
GenerateResource.cs (3)
2145Log.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", Sources[i].ItemSpec, e.Message); 2689"General.InvalidResxFile", ae.Message); 2986_logger.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", filename, ex.Message);
GetReferenceAssemblyPaths.cs (1)
208Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.InvalidTargetFrameworkMoniker", TargetFrameworkMoniker, e.Message);
Move.cs (1)
135Log.LogErrorWithCodeFromResources("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message, string.Empty);
MSBuild.cs (1)
630log.LogWarningWithCodeFromResources(null, projects[i].ItemSpec, 0, 0, 0, 0, "MSBuild.CannotRebaseOutputItemPath", outputItemFromTarget.ItemSpec, e.Message);
ResolveKeySource.cs (1)
107Log.LogErrorWithCodeFromResources("ResolveKeySource.InvalidKeyName", KeyFile, ex.Message);
SdkToolsPathUtility.cs (1)
78log.LogErrorWithCodeFromResources("General.SdkToolsPathError", toolName, e.Message);
src\msbuild\src\Shared\ResourceUtilities.cs (1)
304InternalError.Throw(e.Message);
Touch.cs (1)
105Log.LogErrorWithCodeFromResources("Touch.FileDoesNotExist", file.ItemSpec, ex.Message);
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\ResourceUtilities.cs (1)
304InternalError.Throw(e.Message);
ToolLocationHelper.cs (1)
1542DebugTrace.WriteLine($"Cannot create FrameworkName object, Exception:{e.Message}");
Microsoft.CodeAnalysis (3)
EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.CodeAnalysis.CSharp (1)
Symbols\FileIdentifier.cs (1)
53encoderFallbackErrorMessage = ex.Message;
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
727Assert.Matches(@"DataFrame already contains a column called Column( \(Parameter 'column'\)|\r\nParameter name: column)", exp.Message);
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
631Assert.Contains("dup", ex.Message); 640Assert.Contains("filter", ex2.Message);
Microsoft.Extensions.AI.Tests (8)
Functions\AIFunctionFactoryTest.cs (8)
398Assert.Contains("myParam", ex.Message); 433Assert.Contains("dup", ex.Message); 438Assert.Contains("filter", ex2.Message); 460Assert.Contains("dup", ex.Message); 461Assert.Contains("AIParameterNameAttribute", ex.Message); 1708Assert.Contains("phase", ex.Message); 1763Assert.Contains("PHASE", ex.Message); 1784Assert.Contains("phase", ex.Message);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
TagSetTests.cs (2)
145Assert.StartsWith("Tags cannot be empty.", ex.Message); 153Assert.StartsWith("The tag '*' is reserved and cannot be used in this context.", ex.Message);
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
DependencyInjectionExtensionsTests.cs (1)
38exception.Message);
Microsoft.Extensions.Telemetry.Tests (1)
Http\HttpParserTests.cs (1)
563Assert.StartsWith("A catch-all parameter must be the last segment in the route.", exception.Message);
Microsoft.Gen.Logging.Generated.Tests (1)
LogMethodTests.cs (1)
600Assert.Equal(exception.Message, collector.LatestRecord.Exception!.Message);
Microsoft.ML.AutoML.Tests (19)
UserInputValidationTests.cs (19)
30Assert.StartsWith("Training data cannot be null", ex.Message); 39Assert.Equal("Provided label column cannot be null", ex.Message); 51Assert.Equal($"Provided label column '{columnName}' not found in training data.", ex.Message); 66ex.Message); 79Assert.Equal("Provided label column 'Label' was of type Boolean, but only type Single is allowed.", ex.Message); 90Assert.Equal("Null column string was specified as numeric in column information", ex.Message); 120Assert.StartsWith("Training data and validation data schemas do not match. Train data has '2' columns,and validation data has '1' columns.", ex.Message); 143Assert.StartsWith("Training data and validation data schemas do not match. Column '1' exists in train data, but not in validation data.", ex.Message); 166Assert.StartsWith("Training data and validation data schemas do not match. Column '1' is of type String in train data, and type Single in validation data.", ex.Message); 174Assert.StartsWith("Provided path cannot be null", ex.Message); 181Assert.StartsWith("File 'idontexist' does not exist", ex.Message); 190Assert.StartsWith("File at path 'empty' cannot be empty", ex.Message); 209Assert.StartsWith("Features column must be of data type Single", ex.Message); 229Assert.Equal("Provided text column 'TextColumn' was of type Single, but only type String is allowed.", ex.Message); 304Assert.StartsWith("Only supported feature column types are Boolean, Single, and String. Please change the feature column UInt64 of type UInt64 to one of the supported types.", ex.Message); 317Assert.StartsWith("Training data has 0 rows", ex.Message); 340Assert.StartsWith("Validation data has 0 rows", ex.Message); 407ex.Message); 422ex.Message);
Microsoft.Private.Windows.Core (1)
System\IO\BinaryReaderExtensions.cs (1)
42throw new SerializationException(ex.Message, ex);
Microsoft.TestPlatform.Filter.Source (1)
FilterExpressionWrapper.cs (1)
96ParseError = ex.Message;
Microsoft.VisualStudio.TestPlatform.Common (1)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpressionWrapper.cs (1)
96ParseError = ex.Message;
MSBuild (4)
src\msbuild\src\Shared\ResourceUtilities.cs (1)
304InternalError.Throw(e.Message);
XMake.cs (3)
3194CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3303CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3343ex.Message);
NuGet.CommandLine.XPlat (4)
Commands\PackageSearch\PackageSearchCommand.cs (1)
121logger.LogError(ex.Message);
Commands\PackageSearch\PackageSearchRunner.cs (1)
54packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, ex.Message));
Commands\Why\WhyCommand.cs (1)
125console.Value.Markup($"[red]{ex.Message}[/]");
Commands\Why\WhyCommandRunner.cs (1)
52ex.Message);
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
2277_logger.Log(RestoreLogMessage.CreateError(NuGetLogCode.NU1017, ex.Message));
NuGet.Configuration (1)
Settings\Settings.cs (1)
794Resources.ShowError_ConfigHasInvalidPackageSource, NuGetLogCode.NU1006, value, ex.Message),
PresentationCore (1)
MS\Internal\FontFace\CompositeFontParser.cs (1)
208Fail(x.Message, x);
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
131throw new InvalidDataException(e.Message);
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
261throw new IOException(e.Message, e); 383throw new ArgumentException(e.Message, paramName);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
68failureReason = $"({nameof(BuiltinOperatorSymbolKey)} failed -> {ex.Message})";
Security.TransportSecurity.IntegrationTests (2)
Https\ClientCredentialTypeTests.4.1.0.cs (2)
202Assert.True(exception.Message.ToLower().Contains(paraMessage), string.Format("Expected exception message to contain: '{0}', actual: '{1}'", paraMessage, exception.Message));
Shared.Tests (11)
Throw\ThrowTest.cs (11)
42Assert.Contains(message, exception.Message, StringComparison.Ordinal); 55Assert.Contains(message, exception.Message, StringComparison.Ordinal); 74Assert.Contains(message, exception.Message, StringComparison.Ordinal); 241Assert.StartsWith("Argument is whitespace", exception.Message); 263Assert.StartsWith("Argument is an empty string", exception.Message); 308Assert.StartsWith("Buffer", exception.Message); 353Assert.StartsWith("Collection is empty", exception.Message); 357Assert.StartsWith("Collection is empty", exception.Message); 361Assert.StartsWith("Collection is empty", exception.Message); 367Assert.StartsWith("Collection is empty", exception.Message); 373Assert.StartsWith("Collection is empty", exception.Message);
System.Data.Common (2)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
503string msg2 = f.Message; 524Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}");
System.Data.Odbc (2)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
503string msg2 = f.Message; 524Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}");
System.Data.OleDb (2)
DbConnectionOptions.cs (2)
854string msg2 = f.Message; 875Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}");
System.Formats.Nrbf (1)
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (1)
168throw new SerializationException(ex.Message, ex);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
79throw new IOException(exc.Message, exc);
System.Net.HttpListener (3)
System\Net\HttpListenerRequestUriBuilder.cs (3)
273if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message)); 323if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message)); 328if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message));
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
75string s = base.Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
94string s = base.Message;
System.Private.Windows.Core (1)
System\IO\BinaryReaderExtensions.cs (1)
42throw new SerializationException(ex.Message, ex);
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
310throw new CryptographicException(ex.Message, ex);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
326throw new CryptographicException(e.Message, e.InnerException);
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
310throw new CryptographicException(ex.Message, ex);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
361Debug.Assert(false, e.Message);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
669getPropsError = e.Message;