Exception: Cask::CaskConflictError Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CaskConflictError.


57
58
59
60
# File 'Library/Homebrew/cask/exceptions.rb', line 57

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. You should avoid using this method if possible, as it may be removed or be changed in the future.


55
56
57
# File 'Library/Homebrew/cask/exceptions.rb', line 55

def conflicting_cask
  @conflicting_cask
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


62
63
64
# File 'Library/Homebrew/cask/exceptions.rb', line 62

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