Class: Capsium::Package::Security::ChecksumMismatch

Inherits:
Data
  • Object
show all
Defined in:
sig/capsium/package/security.rbs,
lib/capsium/package/security.rb

Overview

A file whose SHA-256 does not match the recorded checksum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChecksumMismatch

Returns a new instance of ChecksumMismatch.

Parameters:



16
# File 'sig/capsium/package/security.rbs', line 16

def initialize: (path: String path, expected: String expected, actual: String actual) -> void

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual

Returns:

  • (Object)

    the current value of actual



18
19
20
# File 'lib/capsium/package/security.rb', line 18

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



18
19
20
# File 'lib/capsium/package/security.rb', line 18

def expected
  @expected
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



18
19
20
# File 'lib/capsium/package/security.rb', line 18

def path
  @path
end

Instance Method Details

#messageString

Returns:

  • (String)


19
20
21
# File 'lib/capsium/package/security.rb', line 19

def message
  "checksum mismatch: #{path}"
end