Exception: Gitlab::Lfs::Client::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitlab/lfs/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(http_response:) ⇒ HttpError

Returns a new instance of HttpError.



134
135
136
137
138
# File 'lib/gitlab/lfs/client.rb', line 134

def initialize(http_response:)
  super

  @http_response = http_response
end

Instance Method Details

#http_errorObject



140
141
142
# File 'lib/gitlab/lfs/client.rb', line 140

def http_error
  "HTTP status #{@http_response.code}"
end