From a9bc03fb01b5d1ac41bf5592f384d22df5425aa4 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Sun, 6 Sep 2026 09:02:31 +1000 Subject: feat: vcs and secret management support --- src/marlin.core/functional/GitCommandException.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/marlin.core/functional/GitCommandException.cs (limited to 'src/marlin.core/functional/GitCommandException.cs') diff --git a/src/marlin.core/functional/GitCommandException.cs b/src/marlin.core/functional/GitCommandException.cs new file mode 100644 index 0000000..e2ee42d --- /dev/null +++ b/src/marlin.core/functional/GitCommandException.cs @@ -0,0 +1,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; + } +} -- cgit v1.3.1