Skip to content

miniproto.media.download.MediaIntegrityError

miniproto.media.download.MediaIntegrityError

Section titled “miniproto.media.download.MediaIntegrityError”
MediaIntegrityError(reason: str, *, offset: int, limit: int) -> None

Bases: MediaDownloadError

Raised when declared file hashes or download-range invariants are violated.

Parameters:

  • reason (str) – Machine-readable explanation of the integrity failure.
  • offset (int) – First affected media byte offset.
  • limit (int) – Number of affected bytes.

Record the corrupted interval and format the transfer error message.

Parameters:

  • reason (str) – Integrity-failure classification included in the exception message.
  • offset (int) – First affected byte offset.
  • limit (int) – Number of affected bytes.