Exception: Cask::AbstractCaskErrorWithToken Private

Inherits:
CaskError
  • Object
show all
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.

Abstract cask error containing a cask token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, reason = nil) ⇒ AbstractCaskErrorWithToken

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.

Returns a new instance of AbstractCaskErrorWithToken.


34
35
36
37
38
39
# File 'Library/Homebrew/cask/exceptions.rb', line 34

def initialize(token, reason = nil)
  super()

  @token = token
  @reason = reason.to_s
end

Instance Attribute Details

#reasonObject (readonly)

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.


32
33
34
# File 'Library/Homebrew/cask/exceptions.rb', line 32

def reason
  @reason
end

#tokenObject (readonly)

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.


32
33
34
# File 'Library/Homebrew/cask/exceptions.rb', line 32

def token
  @token
end