Exception: CurlDownloadStrategyError Private
- Defined in:
- exceptions.rb
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Raised in CurlDownloadStrategy#fetch.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(url) ⇒ CurlDownloadStrategyError
constructor
private
A new instance of CurlDownloadStrategyError.
Constructor Details
#initialize(url) ⇒ CurlDownloadStrategyError
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
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 |