1 type derived from NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\ToolPackageException.cs (1)
25internal class NuGetPackageNotFoundException : NuGetPackageInstallerException
6 instantiations of NuGetPackageInstallerException
dotnet (6)
NugetPackageDownloader\NuGetPackageDownloader.cs (6)
139throw new NuGetPackageInstallerException( 191throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToValidatePackageSigning, commandOutput)); 403throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, packageId)); 408throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, packageId)); 450throw new NuGetPackageInstallerException("No NuGet sources are defined or enabled"); 710throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToLoadNuGetSource,
3 references to NuGetPackageInstallerException
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
149catch (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));