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