Exception: ConcurrentDownloader::ConnectionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queue_item, downloader_id) ⇒ ConnectionError

Returns a new instance of ConnectionError.



30
31
32
33
34
35
# File 'lib/concurrent_downloader.rb', line 30

def initialize(queue_item, downloader_id)
  @queue_item = queue_item
  @downloader_id = downloader_id

  super "There was a connection error: #{@queue_item[:method].upcase} #{@queue_item[:path]}"
end

Instance Attribute Details

#downloader_idObject (readonly)

Returns the value of attribute downloader_id.



26
27
28
# File 'lib/concurrent_downloader.rb', line 26

def downloader_id
  @downloader_id
end

#queue_itemObject (readonly)

Returns the value of attribute queue_item.



26
27
28
# File 'lib/concurrent_downloader.rb', line 26

def queue_item
  @queue_item
end