Exception: Cask::CaskConflictError Private

Inherits:
AbstractCaskErrorWithToken show all
Defined in:
cask/exceptions.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 when a cask conflicts with another cask.

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

#initialize(token, conflicting_cask) ⇒ CaskConflictError

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 CaskConflictError.



63
64
65
66
# File 'cask/exceptions.rb', line 63

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

Instance Attribute Details

#conflicting_caskObject (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.



61
62
63
# File 'cask/exceptions.rb', line 61

def conflicting_cask
  @conflicting_cask
end

Instance Method Details

#to_sString

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:



69
70
71
# File 'cask/exceptions.rb', line 69

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