Exception: ChecksumMismatchError Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Raised by Pathname#verify_checksum when verification fails.
Instance Attribute Summary collapse
- #expected ⇒ Checksum readonly private
Instance Method Summary collapse
- #initialize(path, expected, actual) ⇒ void constructor private
Constructor Details
#initialize(path, expected, actual) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
922 923 924 925 926 927 928 929 930 931 932 |
# File 'exceptions.rb', line 922 def initialize(path, expected, actual) @expected = expected super <<~EOS SHA-256 mismatch Expected: #{Formatter.success(expected.to_s)} Actual: #{Formatter.error(actual.to_s)} File: #{path} To retry an incomplete download, remove the file above. EOS end |
Instance Attribute Details
#expected ⇒ Checksum (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
919 920 921 |
# File 'exceptions.rb', line 919 def expected @expected end |