Exception: DownloadError

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised in Resource#fetch.

Instance Method Summary collapse

Constructor Details

#initialize(resource, cause) ⇒ DownloadError

Returns a new instance of DownloadError.



569
570
571
572
573
574
575
# File 'exceptions.rb', line 569

def initialize(resource, cause)
  super <<~EOS
    Failed to download resource #{resource.download_name.inspect}
    #{cause.message}
  EOS
  set_backtrace(cause.backtrace)
end