Exception: Keg::LinkError

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

Direct Known Subclasses

ConflictError, DirectoryNotWritableError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LinkError



21
22
23
24
25
26
27
28
# File 'brew/Library/Homebrew/keg.rb', line 21

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)

Returns the value of attribute dst



19
20
21
# File 'brew/Library/Homebrew/keg.rb', line 19

def dst
  @dst
end

#kegObject (readonly)

Returns the value of attribute keg



19
20
21
# File 'brew/Library/Homebrew/keg.rb', line 19

def keg
  @keg
end

#srcObject (readonly)

Returns the value of attribute src



19
20
21
# File 'brew/Library/Homebrew/keg.rb', line 19

def src
  @src
end