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