1 type derived from NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\ToolPackageException.cs (1)
25
internal class NuGetPackageNotFoundException :
NuGetPackageInstallerException
6 instantiations of NuGetPackageInstallerException
dotnet (6)
NugetPackageDownloader\NuGetPackageDownloader.cs (6)
139
throw new
NuGetPackageInstallerException
(
191
throw new
NuGetPackageInstallerException
(string.Format(CliStrings.FailedToValidatePackageSigning, commandOutput));
403
throw new
NuGetPackageInstallerException
(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, packageId));
408
throw new
NuGetPackageInstallerException
(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, packageId));
450
throw new
NuGetPackageInstallerException
("No NuGet sources are defined or enabled");
710
throw new
NuGetPackageInstallerException
(string.Format(CliStrings.FailedToLoadNuGetSource,
3 references to NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
149
catch (
NuGetPackageInstallerException
)
Microsoft.DotNet.PackageInstall.Tests (2)
NuGetPackageInstallerTests.cs (2)
192
(await a.Should().ThrowAsync<
NuGetPackageInstallerException
>()).And.Message.Should().Contain(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, TestPackageId));
213
(await a.Should().ThrowAsync<
NuGetPackageInstallerException
>()).And.Message.Should().Contain(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, TestPackageId));