Exception: PublicStorage::FetchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/publicstorage/fetch_error.rb

Overview

Raised for unexpected HTTP responses.

Instance Method Summary collapse

Constructor Details

#initialize(url:, response:) ⇒ FetchError

Returns a new instance of FetchError.

Parameters:

  • url (String)
  • response (HTTP::Response)


8
9
10
# File 'lib/publicstorage/fetch_error.rb', line 8

def initialize(url:, response:)
  super("url=#{url} status=#{response.status.inspect} body=#{response.body.inspect}")
end