Fil.ChecksumMismatchError exception (Fil v0.5.1)

Copy Markdown View Source

The content doesn't match its checksum. Upload or download it again.

Adapters return it for a write with checksum: that the storage received damaged, and for a read with verify_checksum: true whose content doesn't match the stored checksum. Fil.Adapter.Zip checks every whole read of an entry against the archive's CRC-32, and returns it with reason: {:bad_entry, where} for an entry that's damaged in other ways. Reading such an entry again gives the same error, so the archive has to be written again.

Summary

Types

t()

@type t() :: %Fil.ChecksumMismatchError{
  __exception__: term(),
  disk: Fil.Disk.t() | nil,
  op: Fil.Op.name() | nil,
  path: String.t() | nil,
  reason: term()
}