There was an error while loading. Please reload this page.
2 parents e77f89e + b4f6fbd commit 09cc5b3Copy full SHA for 09cc5b3
lib/gitlab_net.rb
@@ -10,9 +10,6 @@
10
class GitlabNet # rubocop:disable Metrics/ClassLength
11
include HTTPHelper
12
13
- class ApiUnreachableError < StandardError; end
14
- class NotFound < StandardError; end
15
-
16
CHECK_TIMEOUT = 5
17
API_INACCESSIBLE_MESSAGE = 'API is not accessible'.freeze
18
lib/gitlab_net/errors.rb
@@ -0,0 +1,4 @@
1
+class GitlabNet
2
+ class ApiUnreachableError < StandardError; end
3
+ class NotFound < StandardError; end
4
+end
lib/http_helper.rb
@@ -1,5 +1,6 @@
require_relative 'httpunix'
require_relative 'gitlab_logger'
+require_relative 'gitlab_net/errors'
5
module HTTPHelper
6
READ_TIMEOUT = 300
0 commit comments