Exception: CurlDownloadStrategyError

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

Overview

Direct Known Subclasses

HomebrewCurlDownloadStrategyError

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ CurlDownloadStrategyError

Returns a new instance of CurlDownloadStrategyError.



625
626
627
628
629
630
631
632
# File 'exceptions.rb', line 625

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