12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
227throw new EmptyChoicesException(AddCommandStrings.NoIntegrationPackagesFound); 290throw new EmptyChoicesException(message); 616throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionNotFoundForPackage, selectedPackage.Package.Id, preferredVersion));
Interaction\ConsoleInteractionService.cs (2)
319throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 390throw 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)
191throw new EmptyChoicesException($"No items available for selection: {promptText}"); 234throw new EmptyChoicesException($"No items available for selection: {promptText}");
11 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
452catch (EmptyChoicesException ex)
Commands\InitCommand.cs (1)
456catch (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 (7)
Interaction\ConsoleInteractionServiceTests.cs (2)
89await Assert.ThrowsAsync<EmptyChoicesException>(() => 101await 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>(