gitlab-org--gitlab-foss/lib/gitlab/git/reference_update_error.rb

17 lines
408 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module Git
# ReferenceUpdateError represents an error that happen when trying to
# update a Git reference.
class ReferenceUpdateError < StandardError
def initialize(message, reference, old_oid, new_oid)
@message = message
@reference = reference
@old_oid = old_oid
@new_oid = new_oid
end
end
end
end