A zip archive could not be encoded or decoded.
"InvalidHeader": a header has an unknown signature or a malformed field, or an entry has a value that cannot be written."InvalidData": the compressed data of an entry is corrupt."Truncated": the input ended inside an entry or before the central directory."Checksum": the data of an entry does not match its CRC-32."SizeMismatch": a body produced a byte count other than itssize, or the data of an entry does not match the sizes in the archive."Unsupported": the archive uses a feature this module does not read, such as encryption or a compression method other than store and deflate."BodyConsumed": a body was read after the decoder had moved past it.
Attributes#
| Attribute | Type | Description |
|---|---|---|
kind | ZipErrorKind | |
message | str |
Functions#
__init__#
__init__(kind, message) -> None| Parameter | Type | Description |
|---|---|---|
kind | ZipErrorKind | |
message | str |