summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/error.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/error.rb')
-rw-r--r--lib/bulk_imports/error.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bulk_imports/error.rb b/lib/bulk_imports/error.rb
index 988982d3cdf..38f26028276 100644
--- a/lib/bulk_imports/error.rb
+++ b/lib/bulk_imports/error.rb
@@ -5,5 +5,14 @@ module BulkImports
def self.unsupported_gitlab_version
self.new("Unsupported GitLab Version. Minimum Supported Gitlab Version #{BulkImport::MIN_MAJOR_VERSION}.")
end
+
+ def self.scope_validation_failure
+ self.new("Import aborted as the provided personal access token does not have the required 'api' scope or " \
+ "is no longer valid.")
+ end
+
+ def self.invalid_url
+ self.new("Import aborted as it was not possible to connect to the provided GitLab instance URL.")
+ end
end
end