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