Exception: S3Search::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- S3Search::RequestError
- Defined in:
- lib/s3search/request_error.rb
Direct Known Subclasses
Defined Under Namespace
Classes: NotFound, Unauthorized
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
5 6 7 8 9 10 |
# File 'lib/s3search/request_error.rb', line 5 def initialize(response) @response = response msg = "Error processing request: (#{response.status})! #{response.env[:method]} URL: #{response.env[:url]}" msg << "\n Resp Body: #{response.body}" super msg end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/s3search/request_error.rb', line 3 def response @response end |