lib/redmine_git_hosting/error.rb
# frozen_string_literal: true
module RedmineGitHosting
module Error
# Used to register errors when pulling and pushing the conf file
class GitoliteException < StandardError; end
class GitoliteWrapperException < GitoliteException; end
class InvalidSshKey < GitoliteException; end
class InvalidRefspec < GitoliteException
class BadFormat < InvalidRefspec; end
class NullComponent < InvalidRefspec; end
end
# Used to register errors when pulling and pushing the conf file
class GitoliteCommandException < GitoliteException
attr_reader :command, :output
def initialize(command, output)
super()
@command = command
@output = output
end
end
end
end