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