Exception: DownloadError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/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



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

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