Exception: Gitlab::ImportExport::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitlab/import_export/error.rb

Class Method Summary collapse

Class Method Details

.permission_error(user, importable) ⇒ Object


6
7
8
9
10
11
# File 'lib/gitlab/import_export/error.rb', line 6

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