Exception: ChecksumMismatchError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ChecksumMismatchError
- Defined in:
- exceptions.rb
Overview
Raised by Pathname#verify_checksum when verification fails.
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(path, expected, actual) ⇒ ChecksumMismatchError
constructor
A new instance of ChecksumMismatchError.
Constructor Details
#initialize(path, expected, actual) ⇒ ChecksumMismatchError
Returns a new instance of ChecksumMismatchError.
718 719 720 721 722 723 724 725 726 727 728 |
# File 'exceptions.rb', line 718 def initialize(path, expected, actual) @expected = expected super <<~EOS SHA256 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)
Returns the value of attribute expected.
716 717 718 |
# File 'exceptions.rb', line 716 def expected @expected end |