Exception: Cask::CaskConflictError Private
- Inherits:
-
AbstractCaskErrorWithToken
- Object
- RuntimeError
- CaskError
- AbstractCaskErrorWithToken
- Cask::CaskConflictError
- 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
- #conflicting_cask ⇒ Object readonly private
Attributes inherited from AbstractCaskErrorWithToken
Instance Method Summary collapse
-
#initialize(token, conflicting_cask) ⇒ CaskConflictError
constructor
private
A new instance of CaskConflictError.
- #to_s ⇒ Object private
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_cask ⇒ Object (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_s ⇒ Object
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 |