Exception: Hbc::CaskInvalidError
- Inherits:
-
AbstractCaskErrorWithToken
- Object
- RuntimeError
- CaskError
- AbstractCaskErrorWithToken
- Hbc::CaskInvalidError
- Defined in:
- Library/Homebrew/cask/lib/hbc/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AbstractCaskErrorWithToken
Instance Method Summary collapse
Methods inherited from AbstractCaskErrorWithToken
Constructor Details
This class inherits a constructor from Hbc::AbstractCaskErrorWithToken
Instance Method Details
#to_s ⇒ Object
112 113 114 |
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 112 def to_s "Cask '#{token}' definition is invalid" << (reason.empty? ? "." : ": #{reason}") end |