Exception: CubeSmart::FetchError
- Defined in:
- lib/cubesmart/fetch_error.rb
Overview
Raised for unexpected HTTP responses.
Instance Method Summary collapse
-
#initialize(url:, response:) ⇒ FetchError
constructor
A new instance of FetchError.
Constructor Details
#initialize(url:, response:) ⇒ FetchError
Returns a new instance of FetchError.
8 9 10 |
# File 'lib/cubesmart/fetch_error.rb', line 8 def initialize(url:, response:) super("url=#{url} status=#{response.status.inspect} body=#{String(response.body).inspect}") end |