integrity_error
Stable error · Errors
Tier: stable · Kind: error · Topic: Errors
| Python | Julia | Rust |
|---|---|---|
IntegrityError | IntegrityError | not exported |
Python
class IntegrityError(EarthSciIOError)
IntegrityError(message: str, *, key: Optional[str] = None, expected: Optional[str] = None, actual: Optional[str] = None)
A cached or freshly downloaded blob failed its checksum / size check.
Raised when sha256(blob) disagrees with the expected/stored
sha256_content (or the on-disk length disagrees with manifest.bytes).
A self-pinned integrity failure means the blob is corrupt and must not be
served; the cache deletes it and re-fetches (online) or surfaces this error.
Julia
struct IntegrityError <: Exception
IntegrityError(url::String, key::String, expected::String, got::String)
IntegrityError(url, key, expected, got)
Raised when a blob’s bytes do not match its manifest sha256_content.
Rust
Rust does not export this error.