Spec-Zone.ru › Homebrew

Exception: Keg::LinkError Private

Inherits:
RuntimeError
  • Object
  • RuntimeError
  • Keg::LinkError
show all
Defined in:
keg.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.

Error for when a keg cannot be linked.

Direct Known Subclasses

ConflictError, DirectoryNotWritableError

Instance Attribute Summary collapse

  • #dst ⇒ Pathname readonly private
  • #keg ⇒ Keg readonly private
  • #src ⇒ Pathname readonly private

Instance Method Summary collapse

  • #initialize(keg, src, dst, cause) ⇒ void constructor private

Constructor Details

#initialize(keg, src, dst, 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:

  • keg (Keg)
  • src (Pathname)
  • dst (Pathname)
  • cause (Exception)


42
43
44
45
46
47
48
49
# File 'keg.rb', line 42

def initialize(keg, src, dst, cause)
  @src = src
  @dst = dst
  @keg = keg
  @cause = cause
  super(cause.message)
  set_backtrace(cause.backtrace)
end

Instance Attribute Details

#dst ⇒ Pathname (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:

  • (Pathname)


39
40
41
# File 'keg.rb', line 39

def dst
  @dst
end

#keg ⇒ Keg (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:

  • (Keg)


36
37
38
# File 'keg.rb', line 36

def keg
  @keg
end

#src ⇒ Pathname (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:

  • (Pathname)


39
40
41
# File 'keg.rb', line 39

def src
  @src
end

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

Spec-Zone.ru

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