Spec-Zone.ru › Homebrew

Exception: DownloadError Private

Inherits:
RuntimeError
  • Object
  • RuntimeError
  • DownloadError
show all
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 Downloadable#fetch.

Instance Attribute Summary collapse

  • #cause ⇒ Exception readonly private

Instance Method Summary collapse

  • #initialize(downloadable, cause) ⇒ void constructor private

Constructor Details

#initialize(downloadable, cause) ⇒ 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.

Parameters:

  • downloadable (Downloadable)
  • cause (Exception)


792
793
794
795
796
797
798
799
# File 'exceptions.rb', line 792

def initialize(downloadable, cause)
  super <<~EOS
    Failed to download resource #{downloadable.download_queue_name.inspect}#{cause.message}  EOS
  @cause = cause
  set_backtrace(cause.backtrace)
end

Instance Attribute Details

#cause ⇒ Exception (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.

Returns:

  • (Exception)


789
790
791
# File 'exceptions.rb', line 789

def cause
  @cause
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/DownloadError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API