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, details = nil) ⇒ void constructor private
Constructor Details
#initialize(url, details = nil) ⇒ void
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.
662 663 664 665 666 667 668 669 670 |
# File 'exceptions.rb', line 662 def initialize(url, details = nil) suffix = "\n#{details}" if details.present? case url when %r{^file://(.+)} super "File cannot be read: #{Regexp.last_match(1)}#{suffix}" else super "Download failed: #{url}#{suffix}" end end |