Commit 25e751e9 authored by Ash McKenzie's avatar Ash McKenzie

Move HTTP related exceptions into HTTPHelper

parent 7a2c47f2
...@@ -12,9 +12,6 @@ require_relative 'http_helper' ...@@ -12,9 +12,6 @@ require_relative 'http_helper'
class GitlabNet # rubocop:disable Metrics/ClassLength class GitlabNet # rubocop:disable Metrics/ClassLength
include HTTPHelper include HTTPHelper
class ApiUnreachableError < StandardError; end
class NotFound < StandardError; end
CHECK_TIMEOUT = 5 CHECK_TIMEOUT = 5
GL_PROTOCOL = 'ssh'.freeze GL_PROTOCOL = 'ssh'.freeze
......
module HTTPHelper module HTTPHelper
READ_TIMEOUT = 300 READ_TIMEOUT = 300
class ApiUnreachableError < StandardError; end
class NotFound < StandardError; end
protected protected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment