On this page
tarfile.HeaderError
Prev: tarfile.fully_trusted_filter | Up: tarfile | Next: tarfile.is_tarfile
Rel: tarfile.AbsoluteLinkError, tarfile.AbsolutePathError, tarfile.CompressionError, tarfile.data_filter
Ref: docs.python.org โ tarfile.HeaderError
Tags: #public #python3 #stdlib #tarfile
Import
import tarfile
from tarfile import HeaderError
Signature & Overview
tarfile.HeaderError(...)
Base exception for header errors.
Methods & Attributes
HeaderError.add_note(self, note, /)โ Add a note to the exceptionHeaderError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import tarfile
assert issubclass(tarfile.HeaderError, tarfile.TarError)
Gotchas
- Raised on invalid tar member headers (corrupt checksums, truncated headers, or malformed PAX headers).
REPL Inspect
from tarfile import HeaderError
help(HeaderError)
Linked from
Related notes
- tuts/python3/stdlib_module/tarfile/fully_trusted_filter Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/is_tarfile Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsoluteLinkError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsolutePathError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/CompressionError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/data_filter Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/TarFile Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tarfile/ExtractError shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/FilterError shared tags: #stdlib, #tarfile