Exception: Cask::CaskInvalidError

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

Direct Known Subclasses

CaskTokenMismatchError

Instance Attribute Summary

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Methods inherited from AbstractCaskErrorWithToken

#initialize

Constructor Details

This class inherits a constructor from Cask::AbstractCaskErrorWithToken

Instance Method Details

#to_sObject



108
109
110
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 108

def to_s
  "Cask '#{token}' definition is invalid#{reason.empty? ? "." : ": #{reason}"}"
end