Exception: Cask::CaskUnavailableError

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

Direct Known Subclasses

CaskUnreadableError

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



49
50
51
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 49

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