Exception: Cask::CaskConflictError

Inherits:
AbstractCaskErrorWithToken show all
Defined in:
brew/Library/Homebrew/cask/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

#initialize(token, conflicting_cask) ⇒ CaskConflictError

Returns a new instance of CaskConflictError



38
39
40
41
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 38

def initialize(token, conflicting_cask)
  super(token)
  @conflicting_cask = conflicting_cask
end

Instance Attribute Details

#conflicting_caskObject (readonly)

Returns the value of attribute conflicting_cask



36
37
38
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 36

def conflicting_cask
  @conflicting_cask
end

Instance Method Details

#to_sObject



43
44
45
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 43

def to_s
  "Cask '#{token}' conflicts with '#{conflicting_cask}'."
end