Exception: CurlDownloadStrategyError

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

Overview

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ CurlDownloadStrategyError

Returns a new instance of CurlDownloadStrategyError.


524
525
526
527
528
529
530
531
# File 'Library/Homebrew/exceptions.rb', line 524

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