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 ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(path, expected, actual) ⇒ ChecksumMismatchError
constructor
private
A new instance of ChecksumMismatchError.
Constructor Details
#initialize(path, expected, actual) ⇒ ChecksumMismatchError
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.
Returns a new instance of ChecksumMismatchError.
750 751 752 753 754 755 756 757 758 759 760 |
# File 'exceptions.rb', line 750 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 ⇒ Object (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.
748 749 750 |
# File 'exceptions.rb', line 748 def expected @expected end |