17 instantiations of ToolConfigurationException
dotnet (13)
ShellShim\ShellShimRepository.cs (1)
84
throw new
ToolConfigurationException
(
ToolPackage\ToolConfiguration.cs (4)
20
throw new
ToolConfigurationException
(CliStrings.ToolSettingsMissingCommandName);
25
throw new
ToolConfigurationException
(
46
throw new
ToolConfigurationException
(
58
throw new
ToolConfigurationException
(
ToolPackage\ToolConfigurationDeserializer.cs (5)
38
throw new
ToolConfigurationException
(
46
throw new
ToolConfigurationException
(
57
throw new
ToolConfigurationException
(CliStrings.ToolSettingsMoreThanOneCommand);
63
throw new
ToolConfigurationException
(
76
throw new
ToolConfigurationException
(
ToolPackage\ToolPackageInstance.cs (3)
111
throw new
ToolConfigurationException
(
179
throw new
ToolConfigurationException
(
195
throw new
ToolConfigurationException
(
dotnet.Tests (4)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
313
_toolPackageDownloader.DownloadCallback = () => throw new
ToolConfigurationException
("Simulated error");
CommandTests\Tool\List\ToolListGlobalOrToolPathCommandTests.cs (1)
320
package.SetupGet(p => p.Command).Throws(new
ToolConfigurationException
("broken"));
CommandTests\Tool\Update\ToolUpdateGlobalOrToolPathCommandTests.cs (2)
373
downloadCallback: () => throw new
ToolConfigurationException
("Simulated error")),
400
downloadCallback: () => throw new
ToolConfigurationException
("Simulated error")),
11 references to ToolConfigurationException
dotnet (5)
Commands\Tool\Install\ToolInstallCommandLowLevelErrorConverter.cs (2)
15
if (ex is
ToolConfigurationException
)
29
return ex is
ToolConfigurationException
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
91
catch (Exception ex) when (ex is
ToolConfigurationException
)
Commands\Tool\Uninstall\ToolUninstallCommandLowLevelErrorConverter.cs (2)
20
else if (ex is
ToolConfigurationException
|| ex is ShellShimException)
31
|| ex is
ToolConfigurationException
dotnet.Tests (1)
CommandTests\Tool\List\ToolListGlobalOrToolPathCommandTests.cs (1)
395
catch (Exception ex) when (ex is
ToolConfigurationException
)
Microsoft.DotNet.PackageInstall.Tests (5)
ToolConfigurationDeserializerTests.cs (4)
24
a.Should().Throw<
ToolConfigurationException
>()
33
a.Should().Throw<
ToolConfigurationException
>()
67
a.Should().Throw<
ToolConfigurationException
>()
81
a.Should().Throw<
ToolConfigurationException
>()
ToolPackageDownloaderTests.cs (1)
813
action.Should().NotThrow<
ToolConfigurationException
>();