12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
203throw new EmptyChoicesException(AddCommandStrings.NoIntegrationPackagesFound); 262throw new EmptyChoicesException(message); 508throw 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)
333throw new EmptyChoicesException( 354throw new EmptyChoicesException( 363throw new EmptyChoicesException(Resources.TemplatingStrings.NoTemplateVersionsFound);
Aspire.Cli.Tests (4)
TestServices\TestExtensionInteractionService.cs (2)
78throw new EmptyChoicesException($"No items available for selection: {promptText}"); 98throw new EmptyChoicesException($"No items available for selection: {promptText}");
TestServices\TestInteractionService.cs (2)
188throw new EmptyChoicesException($"No items available for selection: {promptText}"); 218throw new EmptyChoicesException($"No items available for selection: {promptText}");
11 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
423catch (EmptyChoicesException ex)
Commands\InitCommand.cs (1)
415catch (EmptyChoicesException ex)
Templating\DotNetTemplateFactory.cs (1)
576catch (EmptyChoicesException ex)
Templating\TemplateNuGetConfigService.cs (1)
235/// <exception cref="EmptyChoicesException">Thrown when no template package versions are available across the considered channels.</exception>
Aspire.Cli.Tests (7)
Interaction\ConsoleInteractionServiceTests.cs (2)
44await Assert.ThrowsAsync<EmptyChoicesException>(() => 56await Assert.ThrowsAsync<EmptyChoicesException>(() =>
Templating\TemplateNuGetConfigServiceTests.cs (5)
246await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>( 705var exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>( 855var exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.EmptyChoicesException>(