Exception: DownloadError Private
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 Downloadable#fetch.
Instance Attribute Summary collapse
- #cause ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(downloadable, cause) ⇒ DownloadError
constructor
private
A new instance of DownloadError.
Constructor Details
#initialize(downloadable, cause) ⇒ DownloadError
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 DownloadError.
625 626 627 628 629 630 631 632 |
# File 'exceptions.rb', line 625 def initialize(downloadable, cause) super <<~EOS Failed to download resource #{downloadable.download_name.inspect} #{cause.} EOS @cause = cause set_backtrace(cause.backtrace) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
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.
623 624 625 |
# File 'exceptions.rb', line 623 def cause @cause end |