18 instantiations of ToolPackageException
dotnet (9)
Commands\Tool\Install\ProjectRestorer.cs (1)
54
throw new
ToolPackageException
(CliCommandStrings.ToolInstallationRestoreFailed);
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
199
throw new
ToolPackageException
(string.Join(Environment.NewLine, errors));
ToolPackage\ToolPackageDownloader.cs (1)
153
throw new
ToolPackageException
(string.Format(CliStrings.ToolPackageNotATool, packageId));
ToolPackage\ToolPackageDownloaderBase.cs (2)
162
throw new
ToolPackageException
(
350
throw new
ToolPackageException
(string.Format(CliStrings.ToolUnsupportedRuntimeIdentifier, RuntimeInformation.RuntimeIdentifier,
ToolPackage\ToolPackageInstance.cs (2)
78
throw new
ToolPackageException
(string.Format(CliStrings.FailedToReadNuGetLockFile, Id, ex.Message), ex);
84
throw new
ToolPackageException
(
ToolPackage\ToolPackageStoreAndQuery.cs (1)
35
throw new
ToolPackageException
(
ToolPackage\ToolPackageUninstaller.cs (1)
43
throw new
ToolPackageException
(ex.Message, ex);
dotnet.Tests (2)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
268
_toolPackageDownloader.DownloadCallback = () => throw new
ToolPackageException
(ErrorMessage);
ShellShimTests\ShellShimRepositoryTests.cs (1)
198
Action intendedError = () => throw new
ToolPackageException
("simulated error");
Microsoft.DotNet.Tools.Tests.ComponentMocks (7)
ToolPackageDownloaderMock.cs (4)
121
throw new
ToolPackageException
(CliCommandStrings.ToolInstallationRestoreFailed);
162
throw new
ToolPackageException
(
261
throw new
ToolPackageException
(CliCommandStrings.ToolInstallationRestoreFailed);
323
throw new
ToolPackageException
(CliCommandStrings.ToolInstallationRestoreFailed);
ToolPackageMock.cs (1)
90
throw new
ToolPackageException
(
ToolPackageStoreMock.cs (1)
47
throw new
ToolPackageException
(
ToolPackageUninstallerMock.cs (1)
59
throw new
ToolPackageException
(ex.Message, ex);
8 references to ToolPackageException
dotnet (4)
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
101
catch (
ToolPackageException
e)
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
237
ToolPackageException
toolPackageException)
Commands\Tool\Uninstall\ToolUninstallCommandLowLevelErrorConverter.cs (2)
16
if (ex is
ToolPackageException
)
30
return ex is
ToolPackageException
dotnet.Tests (2)
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (1)
239
a.Should().Throw<
ToolPackageException
>()
ShellShimTests\ShellShimRepositoryTests.cs (1)
216
a.Should().Throw<
ToolPackageException
>().WithMessage("simulated error");
Microsoft.DotNet.PackageInstall.Tests (2)
ToolPackageDownloaderTests.cs (2)
431
a.Should().Throw<
ToolPackageException
>().Where(
579
secondCall.Should().Throw<
ToolPackageException
>().Where(