10 instantiations of GitCommandException
aspire (4)
Git\GitCommandRunner.cs (3)
135throw new GitCommandException(GitFailure.Unavailable, null); 139throw new GitCommandException(GitFailure.RepositoryUnavailable, null); 159return new GitCommandException(authentication ? GitFailure.AuthenticationFailed
Templating\TemplateEngineFactory.cs (1)
221throw new GitCommandException(GitFailure.TimedOut, null);
Aspire.Cli.Tests (6)
Commands\NewCommandLocalTemplateTests.cs (4)
14410 => new GitCommandException(GitFailure.RepositoryUnavailable, 128), 14421 => new GitCommandException(GitFailure.Unavailable, null), 14432 => new GitCommandException(GitFailure.AuthenticationFailed, 128), 1444_ => new GitCommandException(GitFailure.TimedOut, null)
Configuration\ConfigSourceServiceGitTests.cs (1)
46RunCallback = (_, _) => throw new GitCommandException(kind, 128)
Templating\TemplateEngineFactoryGitTests.cs (1)
75? throw new GitCommandException(GitFailure.CommandFailed, 128)
13 references to GitCommandException
aspire (5)
Configuration\ConfigSourceService.cs (3)
595catch (GitCommandException ex) 617catch (GitCommandException ex) 665private static ConfigSourceException TranslateGitFailure(GitCommandException exception) =>
Git\GitCommandRunner.cs (1)
149internal static GitCommandException CreateCommandException(string stderr, int exitCode, GitCommandMode mode)
Templating\TemplateEngineFactory.cs (1)
168catch (GitCommandException ex)
Aspire.Cli.Tests (8)
Commands\NewCommandLocalTemplateTests.cs (1)
1439var exception = failure switch
Configuration\ConfigSourceServiceGitTests.cs (2)
237var error = await Assert.ThrowsAsync<GitCommandException>(() => run.WaitAsync(TimeSpan.FromSeconds(10)));
Git\GitCommandRunnerTests.cs (5)
140var exception = await Assert.ThrowsAsync<GitCommandException>(() => 163var exception = GitCommandRunner.CreateCommandException("fatal: could not read Password", 128, Enum.Parse<GitCommandMode>(mode)); 178var exception = await Assert.ThrowsAsync<GitCommandException>(() =>