Welcome to mirror list, hosted at ThFree Co, Russian Federation.

error.rb « import_export « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f11b7a0a298a2f4d32f8a10adb2c09dd7096d08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Gitlab
  module ImportExport
    class Error < StandardError
      def self.permission_error(user, importable)
        self.new(
          "User with ID: %s does not have required permissions for %s: %s with ID: %s" %
          [user.id, importable.class.name, importable.name, importable.id]
        )
      end
    end
  end
end