You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.TrashLib/Repo/VersionControl/GitCmdException.cs

25 lines
605 B

namespace Recyclarr.TrashLib.Repo.VersionControl;
public class GitCmdException : Exception
{
// ReSharper disable UnusedAutoPropertyAccessor.Global
public string Error { get; }
public int ExitCode { get; }
// ReSharper restore UnusedAutoPropertyAccessor.Global
public GitCmdException(int exitCode, string error)
: base("Git command failed with a non-zero exit code")
{
Error = error;
ExitCode = exitCode;
}
}
public class InvalidGitRepoException : Exception
{
public InvalidGitRepoException(string? message)
: base(message)
{
}
}