Base:
25 references to Message
aspire (8)
Agents\DeprecatedMcpCommandScanner.cs (1)
88File.AppendAllText(debugPath, $"[{DateTime.UtcNow:O}] -> JsonException: {ex.Message}\n");
Commands\AddCommand.cs (1)
115InteractionService.DisplayError(ex.Message);
Commands\McpCallCommand.cs (1)
107_interactionService.DisplayError($"Invalid JSON input: {ex.Message}");
Configuration\AspireConfigFile.cs (1)
133string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, filePath, ex.Message),
DotNet\DotNetCliRunner.cs (1)
991logger.LogError($"Failed to read JSON returned by the package search. {ex.Message}");
NuGet\BundleNuGetPackageCache.cs (1)
211throw new NuGetPackageCacheException($"Failed to parse search results: {ex.Message}");
Projects\ProjectLocator.cs (1)
187interactionService.DisplayError(ex.Message);
Utils\ConfigurationHelper.cs (1)
128string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, filePath, ex.Message),
Aspire.Cli.Tests (3)
Configuration\AspireConfigFileTests.cs (3)
94Assert.Contains(configPath, ex.Message); 95Assert.Contains("invalid JSON", ex.Message); 108Assert.Contains(configPath, ex.Message);
Aspire.Dashboard (1)
Model\GenAI\GenAIMessages.cs (1)
238var wrappedEx = new InvalidOperationException($"Error reading message part '{type ?? "(missing)"}': {ex.Message}", ex);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1431new KeyValuePair<string, string[]>(ex.Path ?? string.Empty, [ex.Message]),
Microsoft.AspNetCore.Identity (6)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
1437new KeyValuePair<string, string[]>(jsonException.Path ?? string.Empty, [jsonException.Message]),
PasskeyExceptionExtensions.cs (5)
109=> new($"The attestation credential JSON had an invalid format: {ex.Message}", ex); 115=> new($"The assertion credential JSON had an invalid format: {ex.Message}", ex); 121=> new($"The client data JSON had an invalid format: {ex.Message}", ex); 133=> new($"The attestation state JSON had an invalid format: {ex.Message}", ex); 136=> new($"The assertion state JSON had an invalid format: {ex.Message}", ex);
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonInputFormatter.cs (1)
143return new InputFormatterException(jsonException.Message, jsonException);
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
125logger.LogError("Failed to parse '{FilePath}': {Message}", filePath, e.Message);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
249Assert.Contains("invalid", ex.Message);
Microsoft.TemplateEngine.Edge (1)
BuiltInManagedProvider\GlobalSettings.cs (1)
99var wrappedEx = new JsonException(string.Format(LocalizableStrings.GlobalSettings_Error_CorruptedSettings, _globalSettingsFile, ex.Message), ex.Path, ex.LineNumber, ex.BytePositionInLine, ex);
System.Text.Json (2)
System\Text\Json\JsonException.cs (1)
120info.AddValue("ActualMessage", Message, typeof(string));
System\Text\Json\ThrowHelper.Serialization.cs (1)
497string message = ex.Message;