12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
227
throw new
EmptyChoicesException
(AddCommandStrings.NoIntegrationPackagesFound);
290
throw new
EmptyChoicesException
(message);
616
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)
369
throw new
EmptyChoicesException
(
390
throw new
EmptyChoicesException
(
399
throw new
EmptyChoicesException
(Resources.TemplatingStrings.NoTemplateVersionsFound);
Aspire.Cli.Tests (4)
TestServices\TestExtensionInteractionService.cs (2)
86
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
106
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
TestServices\TestInteractionService.cs (2)
191
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
234
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
11 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
452
catch (
EmptyChoicesException
ex)
Commands\InitCommand.cs (1)
456
catch (
EmptyChoicesException
ex)
Templating\DotNetTemplateFactory.cs (1)
581
catch (
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)
89
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
101
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
Templating\TemplateNuGetConfigServiceTests.cs (5)
476
await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
935
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
1085
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(