18 instantiations of GitCommandException
aspire (7)
Git\GitCommandRunner.cs (6)
165throw new GitCommandException(GitFailure.UnattendedSshUnsupported, null); 198throw new GitCommandException(GitFailure.UnattendedSshUnsupported, null); 204throw new GitCommandException(GitFailure.UnattendedSshUnsupported, null); 411throw new GitCommandException(GitFailure.Unavailable, null); 415throw new GitCommandException(GitFailure.RepositoryUnavailable, null); 442return new GitCommandException(authentication ? GitFailure.AuthenticationFailed
Templating\TemplateEngineFactory.cs (1)
254throw new GitCommandException(GitFailure.TimedOut, null);
Aspire.Cli.Tests (11)
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (5)
3040 => new GitCommandException(GitFailure.RepositoryUnavailable, 128), 3051 => new GitCommandException(GitFailure.Unavailable, null), 3062 => new GitCommandException(GitFailure.AuthenticationFailed, 128), 3073 => new GitCommandException(GitFailure.TimedOut, null), 608throw new GitCommandException(GitFailure.AuthenticationFailed, 128);
Commands\NewCommandLocalTemplateTests.cs (4)
14930 => new GitCommandException(GitFailure.RepositoryUnavailable, 128), 14941 => new GitCommandException(GitFailure.Unavailable, null), 14952 => new GitCommandException(GitFailure.AuthenticationFailed, 128), 1496_ => new GitCommandException(GitFailure.TimedOut, null)
Configuration\ConfigSourceServiceGitTests.cs (1)
48RunCallback = (_, _) => throw new GitCommandException(kind, 128)
Templating\TemplateEngineFactoryGitTests.cs (1)
115? throw new GitCommandException(GitFailure.CommandFailed, 128)
29 references to GitCommandException
aspire (7)
Configuration\ConfigSourceService.cs (3)
775catch (GitCommandException ex) 800catch (GitCommandException ex) 849private static ConfigSourceException TranslateGitFailure(GitCommandException exception) =>
Git\GitCommandRunner.cs (3)
150catch (GitCommandException ex) when (ex.ExitCode is 1) 255catch (GitCommandException ex) when (ex.Failure == GitFailure.CommandFailed) 432internal static GitCommandException CreateCommandException(string stderr, int exitCode, GitCommandMode mode)
Templating\TemplateEngineFactory.cs (1)
201catch (GitCommandException ex)
Aspire.Cli.Tests (22)
Commands\NewCommandLocalTemplateTests.cs (1)
1491var exception = failure switch
Configuration\ConfigSourceServiceGitTests.cs (2)
242var error = await Assert.ThrowsAsync<GitCommandException>(() => run.WaitAsync(TimeSpan.FromSeconds(10)));
Git\GitCommandRunnerTests.Authentication.cs (8)
83var exception = await Assert.ThrowsAsync<GitCommandException>(() => 118var exception = await Assert.ThrowsAsync<GitCommandException>(() => 159var exception = Assert.Throws<GitCommandException>(() => GitCommandRunner.GetSshExecutable(command)); 190var exception = await Assert.ThrowsAsync<GitCommandException>(() =>
Git\GitCommandRunnerTests.cs (11)
145var exception = await Assert.ThrowsAsync<GitCommandException>(() => 169var exception = GitCommandRunner.CreateCommandException("fatal: could not read Password", 128, Enum.Parse<GitCommandMode>(mode)); 184var exception = await Assert.ThrowsAsync<GitCommandException>(() => 235var exception = await Assert.ThrowsAsync<GitCommandException>(() => run); 301var exception = await Assert.ThrowsAsync<GitCommandException>(() => run); 386var exception = await Assert.ThrowsAsync<GitCommandException>(() => operation);