blob: e2ee42d32a2b5237c552f61213fb675d79dd474b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
namespace marlin.core.functional;
public sealed class GitCommandException : Exception
{
public string Command { get; }
public int ExitCode { get; }
public string StandardError { get; }
public GitCommandException(string command, int exitCode, string standardError)
: base($"git {command} exited with code {exitCode}: {standardError.Trim()}")
{
this.Command = command;
this.ExitCode = exitCode;
this.StandardError = standardError;
}
}
|