Exception: Cask::CaskSha256Error

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

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

#initialize(token, expected = nil, actual = nil) ⇒ CaskSha256Error

Returns a new instance of CaskSha256Error



122
123
124
125
126
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 122

def initialize(token, expected = nil, actual = nil)
  super(token)
  @expected = expected
  @actual = actual
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual



120
121
122
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 120

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected



120
121
122
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 120

def expected
  @expected
end