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.



32
33
34
35
36
37
38
39
# File 'keg.rb', line 32

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.



30
31
32
# File 'keg.rb', line 30

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.



30
31
32
# File 'keg.rb', line 30

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.



30
31
32
# File 'keg.rb', line 30

def src
  @src
end