debian-mirror-gitlab/lib/gitlab/import_export/error.rb

15 lines
369 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
# frozen_string_literal: true
2016-06-22 15:30:34 +05:30
module Gitlab
module ImportExport
2020-04-08 14:13:33 +05:30
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
2016-06-22 15:30:34 +05:30
end
end