Exception: S3Light::Connection::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- S3Light::Connection::HttpError
- Defined in:
- lib/s3-light/connection.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(response) ⇒ HttpError
Returns a new instance of HttpError.
8 9 10 11 |
# File 'lib/s3-light/connection.rb', line 8 def initialize(response) @response = response super("HTTP Error: #{response.code} - #{response.body}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/s3-light/connection.rb', line 6 def response @response end |
Instance Method Details
#code ⇒ Object
13 14 15 |
# File 'lib/s3-light/connection.rb', line 13 def code @response.code end |