pcapng.exceptions

exception pcapng.exceptions.PcapngException[source]

Base for all the pcapng exceptions

exception pcapng.exceptions.PcapngLoadError[source]

Indicate an error while loading a pcapng file

exception pcapng.exceptions.PcapngDumpError[source]

Indicate an error while writing a pcapng file

exception pcapng.exceptions.StreamEmpty[source]

Exception indicating that the end of the stream was reached and exactly zero bytes were read; usually it simply indicates we reached the end of the stream and no further content is available for reading.

exception pcapng.exceptions.CorruptedFile[source]

Exception used to indicate that something is wrong with the file structure, possibly due to data corruption.

exception pcapng.exceptions.TruncatedFile[source]

Exception used to indicate that not all the required bytes could be read before stream end, but the read length was non-zero, indicating a possibly truncated stream.

exception pcapng.exceptions.BadMagic[source]

Exception used to indicate a failure due to some bad magic number encountered (either the file magic or section header byte order marker).