Exception: Cask::CaskNoShasumError Private

Inherits:
CaskSha256Error 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 when a cask has no checksum and the --require-sha flag is passed.

Instance Attribute Summary

Attributes inherited from CaskSha256Error

#actual, #expected

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Methods inherited from CaskSha256Error

#initialize

Methods inherited from AbstractCaskErrorWithToken

#initialize

Constructor Details

This class inherits a constructor from Cask::CaskSha256Error

Instance Method Details

#to_sObject

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.


221
222
223
224
225
226
# File 'Library/Homebrew/cask/exceptions.rb', line 221

def to_s
  <<~EOS
    Cask '#{token}' does not have a sha256 checksum defined and was not installed.
    This means you have the #{Formatter.identifier("--require-sha")} option set, perhaps in your HOMEBREW_CASK_OPTS.
  EOS
end