Exception: Hbc::CaskSha256MissingError

Inherits:
CaskSha256Error show all
Defined in:
Library/Homebrew/cask/lib/hbc/exceptions.rb

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 Hbc::CaskSha256Error

Instance Method Details

#to_sObject



134
135
136
137
138
139
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 134

def to_s
  <<~EOS
    Cask '#{token}' requires a checksum:
      #{Formatter.identifier("sha256 '#{actual}'")}
  EOS
end