Exception: PublicStorage::FetchError
- Inherits:
 - 
      StandardError
      
        
- Object
 - StandardError
 - PublicStorage::FetchError
 
 
- Defined in:
 - lib/publicstorage/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/publicstorage/fetch_error.rb', line 8 def initialize(url:, response:) super("url=#{url} status=#{response.status.inspect} body=#{response.body.inspect}") end  |