summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/reference_update_error.rb
blob: bc1452b74f03a8573e997e7192754311ca1ec377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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