Exception: Keg::LinkError Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/keg.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of LinkError.


29
30
31
32
33
34
35
36
# File 'Library/Homebrew/keg.rb', line 29

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. You should avoid using this method if possible, as it may be removed or be changed in the future.


27
28
29
# File 'Library/Homebrew/keg.rb', line 27

def dst
  @dst
end

#kegObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


27
28
29
# File 'Library/Homebrew/keg.rb', line 27

def keg
  @keg
end

#srcObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


27
28
29
# File 'Library/Homebrew/keg.rb', line 27

def src
  @src
end