1 type derived from NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\ToolPackageException.cs (1)
25internal class NuGetPackageNotFoundException : NuGetPackageInstallerException
7 instantiations of NuGetPackageInstallerException
dotnet (7)
NugetPackageDownloader\NuGetPackageDownloader.cs (7)
141throw new NuGetPackageInstallerException( 193throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToValidatePackageSigning, commandOutput)); 405throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, packageId)); 410throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, packageId)); 452throw new NuGetPackageInstallerException("No NuGet sources are defined or enabled"); 465throw new NuGetPackageInstallerException(string.Format(CliStrings.Error_NU1302_HttpSourceUsed, packageSource.Source)); 724throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToLoadNuGetSource,
3 references to NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
151catch (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));