Exception: Keg::LinkError

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



19
20
21
22
23
24
25
26
# File 'Library/Homebrew/keg.rb', line 19

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



17
18
19
# File 'Library/Homebrew/keg.rb', line 17

def dst
  @dst
end

#kegObject (readonly)

Returns the value of attribute keg



17
18
19
# File 'Library/Homebrew/keg.rb', line 17

def keg
  @keg
end

#srcObject (readonly)

Returns the value of attribute src



17
18
19
# File 'Library/Homebrew/keg.rb', line 17

def src
  @src
end