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
new file mode 100644
index 00000000000..0464aea642e
--- /dev/null
+++ b/lib/bulk_imports/error.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+module BulkImports
+ class Error < StandardError
+ def self.unsupported_gitlab_version
+ self.new("Unsupported GitLab Version. Minimum Supported Gitlab Version #{BulkImport::MINIMUM_GITLAB_MAJOR_VERSION}.")
+ end
+ end
+end