Exception: Bintray::Client::Ruby::HttpError
- Inherits:
-
Exception
- Object
- Exception
- Bintray::Client::Ruby::HttpError
- Defined in:
- lib/bintray/client/ruby/http_error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ HttpError
constructor
A new instance of HttpError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/bintray/client/ruby/http_error.rb', line 7 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/bintray/client/ruby/http_error.rb', line 7 def status @status end |