Exception: Cask::CaskCannotBeInstalledError Private

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

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Error when a cask cannot be installed.

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

#initialize(token, message) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:



57
58
59
60
# File 'cask/exceptions.rb', line 57

def initialize(token, message)
  super(token)
  @message = message
end

Instance Attribute Details

#messageString (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



54
55
56
# File 'cask/exceptions.rb', line 54

def message
  @message
end