Exception: BulkImports::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BulkImports::Error
show all
- Defined in:
- lib/bulk_imports/error.rb
Class Method Summary
collapse
Class Method Details
.destination_full_path_validation_failure(full_path) ⇒ Object
27
28
29
|
# File 'lib/bulk_imports/error.rb', line 27
def self.destination_full_path_validation_failure(full_path)
self.new("Import failed. '#{full_path}' already exists. Change the destination and try again.")
end
|
.destination_namespace_validation_failure(destination_namespace) ⇒ Object
18
19
20
|
# File 'lib/bulk_imports/error.rb', line 18
def self.destination_namespace_validation_failure(destination_namespace)
self.new("Import failed. Destination '#{destination_namespace}' is invalid, or you don't have permission.")
end
|
.destination_slug_validation_failure ⇒ Object
.invalid_url ⇒ Object
14
15
16
|
# File 'lib/bulk_imports/error.rb', line 14
def self.invalid_url
self.new("Invalid source URL. Enter only the base URL of the source GitLab instance.")
end
|
.scope_validation_failure ⇒ Object
9
10
11
12
|
# File 'lib/bulk_imports/error.rb', line 9
def self.scope_validation_failure
self.new("Personal access token does not have the required " \
"'api' scope or is no longer valid.")
end
|
.setting_not_enabled ⇒ Object
31
32
33
34
35
|
# File 'lib/bulk_imports/error.rb', line 31
def self.setting_not_enabled
self.new("Group import disabled on source or destination instance. " \
"Ask an administrator to enable it on both instances and try again."
)
end
|
.unsupported_gitlab_version ⇒ Object
5
6
7
|
# File 'lib/bulk_imports/error.rb', line 5
def self.unsupported_gitlab_version
self.new("Unsupported GitLab version. Minimum supported version is #{BulkImport::MIN_MAJOR_VERSION}.")
end
|