Exception: CurlDownloadStrategyError

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

Overview

raised in CurlDownloadStrategy.fetch

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ CurlDownloadStrategyError

Returns a new instance of CurlDownloadStrategyError



509
510
511
512
513
514
515
516
# File 'Library/Homebrew/exceptions.rb', line 509

def initialize(url)
  case url
  when %r{^file://(.+)}
    super "File does not exist: #{Regexp.last_match(1)}"
  else
    super "Download failed: #{url}"
  end
end