12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
250throw new EmptyChoicesException(AddCommandStrings.NoIntegrationPackagesFound); 313throw new EmptyChoicesException(message); 752throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionNotFoundForPackage, selectedPackage.Package.Id, preferredVersion));
Interaction\ConsoleInteractionService.cs (2)
326throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 475throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText));
Templating\TemplateNuGetConfigService.cs (3)
369throw new EmptyChoicesException( 390throw new EmptyChoicesException( 399throw new EmptyChoicesException(Resources.TemplatingStrings.NoTemplateVersionsFound);
Aspire.Cli.Tests (4)
TestServices\TestExtensionInteractionService.cs (2)
86throw new EmptyChoicesException($"No items available for selection: {promptText}"); 106throw new EmptyChoicesException($"No items available for selection: {promptText}");
TestServices\TestInteractionService.cs (2)
199throw new EmptyChoicesException($"No items available for selection: {promptText}"); 242throw new EmptyChoicesException($"No items available for selection: {promptText}");
12 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
512catch (EmptyChoicesException ex)
Commands\InitCommand.cs (1)
493catch (EmptyChoicesException ex)
Templating\DotNetTemplateFactory.cs (1)
581catch (EmptyChoicesException ex)
Templating\TemplateNuGetConfigService.cs (1)
268/// <exception cref="EmptyChoicesException">Thrown when no template package versions are available across the considered channels.</exception>
Aspire.Cli.Tests (8)
Interaction\ConsoleInteractionServiceTests.cs (3)
607await Assert.ThrowsAsync<EmptyChoicesException>(() => interaction.PromptForSelectionAsync("Select:", Array.Empty<string>(), choice => choice, 663await Assert.ThrowsAsync<EmptyChoicesException>(() => 675await Assert.ThrowsAsync<EmptyChoicesException>(() =>
Templating\TemplateNuGetConfigServiceTests.cs (5)
476await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>( 935var exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>( 1085var exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>(