12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
203
throw new
EmptyChoicesException
(AddCommandStrings.NoIntegrationPackagesFound);
262
throw new
EmptyChoicesException
(message);
508
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionNotFoundForPackage, selectedPackage.Package.Id, preferredVersion));
Interaction\ConsoleInteractionService.cs (2)
319
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText));
390
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText));
Templating\TemplateNuGetConfigService.cs (3)
333
throw new
EmptyChoicesException
(
354
throw new
EmptyChoicesException
(
363
throw new
EmptyChoicesException
(Resources.TemplatingStrings.NoTemplateVersionsFound);
Aspire.Cli.Tests (4)
TestServices\TestExtensionInteractionService.cs (2)
78
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
98
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
TestServices\TestInteractionService.cs (2)
188
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
218
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
11 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
423
catch (
EmptyChoicesException
ex)
Commands\InitCommand.cs (1)
415
catch (
EmptyChoicesException
ex)
Templating\DotNetTemplateFactory.cs (1)
576
catch (
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)
44
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
56
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
Templating\TemplateNuGetConfigServiceTests.cs (5)
246
await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
705
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
855
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(