Exception: Cask::CaskSha256Error Private

Inherits:
AbstractCaskErrorWithToken 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.

Error with a cask's checksum.

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

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

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 CaskSha256Error.


174
175
176
177
178
# File 'Library/Homebrew/cask/exceptions.rb', line 174

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

Instance Attribute Details

#actualObject (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.


172
173
174
# File 'Library/Homebrew/cask/exceptions.rb', line 172

def actual
  @actual
end

#expectedObject (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.


172
173
174
# File 'Library/Homebrew/cask/exceptions.rb', line 172

def expected
  @expected
end