Exception: Hbc::AbstractCaskErrorWithToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, reason = nil) ⇒ AbstractCaskErrorWithToken

Returns a new instance of AbstractCaskErrorWithToken



8
9
10
11
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 8

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

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason



6
7
8
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 6

def reason
  @reason
end

#tokenObject (readonly)

Returns the value of attribute token



5
6
7
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 5

def token
  @token
end