Exception: Bintray::Client::Ruby::HttpError

Inherits:
Exception
  • Object
show all
Defined in:
lib/bintray/client/ruby/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ HttpError

Returns a new instance of HttpError.



9
10
11
12
13
14
# File 'lib/bintray/client/ruby/http_error.rb', line 9

def initialize(http_response)
  @status = http_response.status
  @response = http_response

  super('http response error')
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/bintray/client/ruby/http_error.rb', line 7

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/bintray/client/ruby/http_error.rb', line 7

def status
  @status
end