Exception: Cask::CaskInvalidError Private
- Inherits:
-
AbstractCaskErrorWithToken
- Object
- RuntimeError
- CaskError
- AbstractCaskErrorWithToken
- Cask::CaskInvalidError
- 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 is invalid.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AbstractCaskErrorWithToken
Instance Method Summary collapse
- #to_s ⇒ Object private
Methods inherited from AbstractCaskErrorWithToken
Constructor Details
This class inherits a constructor from Cask::AbstractCaskErrorWithToken
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.
154 155 156 |
# File 'Library/Homebrew/cask/exceptions.rb', line 154 def to_s "Cask '#{token}' definition is invalid#{reason.empty? ? "." : ": #{reason}"}" end |