Exception: DownloadError

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

Overview

Raised in Resource.fetch

Instance Method Summary collapse

Constructor Details

#initialize(resource, cause) ⇒ DownloadError

Returns a new instance of DownloadError



498
499
500
501
502
503
504
# File 'Library/Homebrew/exceptions.rb', line 498

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