summaryrefslogtreecommitdiff
path: root/src/marlin.core/functional/GitCommandException.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-06 09:02:31 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-06 09:02:31 +1000
commita9bc03fb01b5d1ac41bf5592f384d22df5425aa4 (patch)
tree16ae13e19d2a3cd7488202c30790d09557559d70 /src/marlin.core/functional/GitCommandException.cs
parentc00992ffad24212c4398736efd6d707d4cb0cc0d (diff)
feat: vcs and secret management support
Diffstat (limited to 'src/marlin.core/functional/GitCommandException.cs')
-rw-r--r--src/marlin.core/functional/GitCommandException.cs16
1 files changed, 16 insertions, 0 deletions
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;
+ }
+}