Exception: Keg::LinkError Private

Inherits:
RuntimeError
  • Object
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

Instance Method Summary collapse

Constructor Details

#initialize(keg, src, dst, cause) ⇒ LinkError

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 LinkError.



27
28
29
30
31
32
33
34
# File 'keg.rb', line 27

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

#dstObject (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.



25
26
27
# File 'keg.rb', line 25

def dst
  @dst
end

#kegObject (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.



25
26
27
# File 'keg.rb', line 25

def keg
  @keg
end

#srcObject (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.



25
26
27
# File 'keg.rb', line 25

def src
  @src
end