Exception: Cask::AbstractCaskErrorWithToken

Inherits:
CaskError
  • Object
show all
Defined in:
brew/Library/Homebrew/cask/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, reason = nil) ⇒ AbstractCaskErrorWithToken

Returns a new instance of AbstractCaskErrorWithToken



23
24
25
26
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 23

def initialize(token, reason = nil)
  @token = token
  @reason = reason.to_s
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason



21
22
23
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 21

def reason
  @reason
end

#tokenObject (readonly)

Returns the value of attribute token



20
21
22
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 20

def token
  @token
end