Base:
property
Message
System.Exception.Message
2 overrides of Message
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
71public override string Message
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
90public override string Message
109 references to Message
dotnet-openapi (2)
Application.cs (1)
74Error.WriteLine(ex.Message);
Commands\AddFileCommand.cs (1)
67Error.Write(ex.Message);
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenGeneratorTest.cs (2)
282Assert.StartsWith(@"The required antiforgery cookie token must be provided.", ex.Message); 303Assert.StartsWith("The required antiforgery request token must be provided.", ex.Message);
Microsoft.AspNetCore.Components.Forms.Tests (2)
FieldIdentifierTest.cs (2)
24Assert.StartsWith("The model must be a reference-typed object.", ex.Message); 166Assert.Equal($"The provided expression contains a NewExpression which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object.", ex.Message);
Microsoft.AspNetCore.Components.Tests (7)
ComponentFactoryTest.cs (1)
39Assert.StartsWith($"The type {componentType.FullName} does not implement {nameof(IComponent)}.", ex.Message);
NavigationManagerTest.cs (2)
63ex.Message); 81ex.Message);
RendererTest.cs (3)
3538Assert.Contains($"There is no event handler associated with this event. EventId: '{eventHandlerId}'.", ex.Message); 4830Assert.Equal($"The renderer does not have a component with ID {rootComponentId}.", ex.Message); 4856Assert.Equal($"The renderer does not have a component with ID {rootComponentId}.", ex.Message);
StackObjectPoolTest.cs (1)
116Assert.Equal("Attempting to return wrong pooled instance. Get/Return calls must form a stack.", ex.Message);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
2127Assert.Contains("An item with the same key has already been added. Key: Foo", exception.Message);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ActionResultOfTTest.cs (3)
19Assert.Equal($"Invalid type parameter '{typeof(FileStreamResult)}' specified for 'ActionResult<T>'.", ex.Message); 30Assert.Equal($"Invalid type parameter '{typeof(FileStreamResult)}' specified for 'ActionResult<T>'.", ex.Message); 41Assert.Equal($"Invalid type parameter '{typeof(TestResult)}' specified for 'ActionResult<T>'.", ex.Message);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
TagHelperOutputExtensionsTest.cs (3)
1043var expected = new ArgumentException(Resources.ArgumentCannotContainHtmlSpace, nameof(classValue)).Message; 1055Assert.Equal(expected, exceptionAdd.Message); 1056Assert.Equal(expected, exceptionRemove.Message);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
DefaultDisplayTemplatesTest.cs (1)
367Assert.Equal(expectedMessage, ex.Message);
Rendering\HtmlHelperTest.cs (2)
325Assert.Contains(expectedMessage, exception.Message); 346Assert.Contains(expectedMessage, exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\HttpUtilities.cs (1)
157throw new InvalidOperationException(ex.Message, ex);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
331Assert.Equal("An item with the same key has already been added. Key: .EXAMPLE.org (Parameter 'key')", exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
ConfigurationReaderTests.cs (1)
104Assert.Contains(CoreStrings.KeyAlreadyExists, exception.Message);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
ExceptionMessageExtensions.cs (1)
13var message = argEx.Message;
Microsoft.Build (13)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
695log.LogWarningWithCodeFromResources(null, projects[i].ItemSpec, 0, 0, 0, 0, "MSBuild.CannotRebaseOutputItemPath", outputItemFromTarget.ItemSpec, e.Message);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
720ProjectErrorUtilities.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message);
CommunicationsUtilities.cs (1)
580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
Definition\ProjectCollection.cs (1)
355ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\ToolsetReader.cs (2)
534InvalidToolsetDefinitionException.Throw("ErrorCreatingToolset", toolsVersion.Name, e.Message); 637InvalidToolsetDefinitionException.Throw(ex, "InvalidPropertyNameInToolset", property.Name, property.Source.LocationString, ex.Message);
Evaluation\Evaluator.cs (1)
2562ProjectErrorUtilities.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
303ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message); 454ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Instance\TaskRegistry.cs (1)
423ProjectErrorUtilities.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)
225throw new LoggerException(ex.Message, ex.InnerException, "MSB4128", null);
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
Microsoft.Build.CommandLine.UnitTests (1)
NodeStatus_Transition_Tests.cs (1)
37newNodeStatus.ShouldThrow<ArgumentException>().Message.ShouldContain("Target should not contain any escape codes, if you want to colorize target use the other constructor.");
Microsoft.Build.Engine (8)
Engine\Expander.cs (1)
927ProjectErrorUtilities.VerifyThrowInvalidProject(false, node, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", ex.Message);
Engine\TaskEngine.cs (1)
477ProjectErrorUtilities.VerifyThrowInvalidProject(false, continueOnErrorAttribute, "InvalidContinueOnErrorAttribute", TaskName, e.Message);
Engine\TaskRegistry.cs (1)
335XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message);
Engine\ToolsetReader.cs (2)
398InvalidToolsetDefinitionException.Throw("ErrorCreatingToolset", toolsVersion.Name, e.Message); 443InvalidToolsetDefinitionException.Throw(ex, "InvalidPropertyNameInToolset", property.Name, property.Source, ex.Message);
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
119string message = ResourceUtilities.FormatResourceString(out errorCode, out helpKeyword, "InvalidFileLoggerFile", fileName, e.Message);
Logging\FileLogger.cs (1)
200throw new LoggerException(ex.Message, ex.InnerException, "MSB4128", null);
Shared\ResourceUtilities.cs (1)
210throw new InternalErrorException(e.Message);
Microsoft.Build.Engine.OM.UnitTests (1)
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskHostFactory_Tests.cs (1)
59e.Message.ShouldBe($"Process with an Id of {pid} is not running.");
Graph\GraphLoadedFromSolution_tests.cs (1)
50exception.Message.ShouldContain("MSB4261");
XmlUtilities_Tests.cs (1)
58actual = ex.Message;
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
72Debug.Assert(false, "GetEncoding(default OEM encoding) threw an ArgumentException in EncodingUtilities.CurrentSystemOemEncoding! Please log a bug against MSBuild.", ex.Message);
Microsoft.Build.Framework.UnitTests (1)
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
Microsoft.Build.Tasks.Core (21)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2653Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
AssignCulture.cs (1)
185Log.LogErrorWithCodeFromResources("AssignCulture.CannotExtractCulture", Files[i].ItemSpec, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (4)
387_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message)); 1060Debug.Fail(ex.Message); 1495_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message)); 1894Debug.Fail(ex.Message);
CombinePath.cs (1)
75Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
ConvertToAbsolutePath.cs (1)
71Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
Copy.cs (1)
827Log.LogErrorWithCodeFromResources("Copy.Error", src, dest, e.Message);
Exec.cs (1)
423Log.LogErrorWithCodeFromResources("Exec.InvalidRegex", regularExpression, ex.Message);
FindAppConfigFile.cs (1)
145Log.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)
2071Log.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", Sources[i].ItemSpec, e.Message); 2617"General.InvalidResxFile", ae.Message); 2918_logger.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", filename, ex.Message);
GetReferenceAssemblyPaths.cs (1)
191Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.InvalidTargetFrameworkMoniker", TargetFrameworkMoniker, e.Message);
Move.cs (1)
137Log.LogErrorWithCodeFromResources("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message);
MSBuild.cs (1)
643log.LogWarningWithCodeFromResources(null, projects[i].ItemSpec, 0, 0, 0, 0, "MSBuild.CannotRebaseOutputItemPath", outputItemFromTarget.ItemSpec, e.Message);
ResolveKeySource.cs (1)
103Log.LogErrorWithCodeFromResources("ResolveKeySource.InvalidKeyName", KeyFile, ex.Message);
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
SdkToolsPathUtility.cs (1)
86log.LogErrorWithCodeFromResources("General.SdkToolsPathError", toolName, e.Message);
Microsoft.Build.Tasks.UnitTests (1)
CommandLineBuilderExtension_Tests.cs (1)
50Assert.True(false, "Got an unexpected exception:" + e.Message);
Microsoft.Build.Utilities.Core (2)
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
ToolLocationHelper.cs (1)
1537ErrorUtilities.DebugTraceMessage("TryParsePlatformVersion", "Cannot create FrameworkName object, Exception:{0}", e.Message);
Microsoft.DotNet.Helix.JobSender.Tests (2)
Payloads\AdHocPayloadTests.cs (2)
14Assert.StartsWith("Names of files to upload have to be distinct. The following name repeats at least once: b.txt", exception.Message); 22Assert.StartsWith("Names of files to upload have to be distinct. The following name repeats at least once: b.txt", exception.Message);
Microsoft.DotNet.Helix.Sdk (3)
HelixTask.cs (3)
73catch (ArgumentException argEx) when (argEx.Message.StartsWith("Helix API does not contain an entry ")) 77Log.LogError(FailureCategory.Build, argEx.Message); 81Log.LogWarning($"{argEx.Message} (FailOnMissingTargetQueue is false, so this is just a warning.)");
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
36Assert.Contains("The path must be absolute.", e.Message);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
50Assert.StartsWith($"Duplicate health checks were registered with the name(s): Foo, Baz", exception.Message);
Microsoft.JSInterop.Tests (7)
Infrastructure\DotNetDispatcherTest.cs (7)
47Assert.Equal($"There is no loaded assembly with the name '{assemblyName}'.", ex.Message); 69Assert.Equal($"The assembly '{thisAssemblyName}' does not contain a public invokable method with [JSInvokableAttribute(\"{methodIdentifier}\")].", ex.Message); 240Assert.StartsWith("There is no tracked object with id '1'.", ex.Message); 259Assert.StartsWith("There is no tracked object with id '1'.", ex.Message); 499Assert.Contains($"The assembly '{thisAssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")].", ex.Message); 514Assert.Contains($"The type 'GenericType`1' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")].", ex.Message); 548Assert.Equal("The call to 'InvocableStaticWithParams' expects '3' parameters, but received '2'.", ex.Message);
MSBuild (5)
CommunicationsUtilities.cs (1)
580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
XMake.cs (3)
3159CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3273CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3313ex.Message);
MSBuildTaskHost (2)
CommunicationsUtilities.cs (1)
580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
ResourceUtilities.cs (1)
283ErrorUtilities.ThrowInternalError(e.Message);
PresentationCore (1)
MS\Internal\FontFace\CompositeFontParser.cs (1)
221Fail(x.Message, x);
System.Data.Common (2)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
513string msg2 = f.Message; 534Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}");
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
85throw 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\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
75string s = base.Message;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
94string s = base.Message;