User Defined Warnings

pcapkit.warnings refined built-in warnings.

exception pcapkit.utilities.warnings.AttributeWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Unsupported attribute.

exception pcapkit.utilities.warnings.BaseWarning(*args, **kwargs)[source]

Bases: UserWarning

Base warning class of all kinds.

__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

exception pcapkit.utilities.warnings.DPKTWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ResourceWarning

Warnings on DPKT usage.

exception pcapkit.utilities.warnings.DevModeWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Run in development mode.

exception pcapkit.utilities.warnings.EngineWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ImportWarning

Unsupported extraction engine.

exception pcapkit.utilities.warnings.FileWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Warning on file(s).

exception pcapkit.utilities.warnings.FormatWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ImportWarning

Warning on unknown format(s).

exception pcapkit.utilities.warnings.InvalidVendorWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ImportWarning

Vendor CLI invalid updater.

exception pcapkit.utilities.warnings.LayerWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Unrecognised layer.

exception pcapkit.utilities.warnings.ProtocolWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Unrecognised protocol.

exception pcapkit.utilities.warnings.PySharkWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ResourceWarning

Warnings on PyShark usage.

exception pcapkit.utilities.warnings.ScapyWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, ResourceWarning

Warnings on Scapy usage.

exception pcapkit.utilities.warnings.VendorRequestWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Vendor request connection failed.

exception pcapkit.utilities.warnings.VendorRuntimeWarning(*args, **kwargs)[source]

Bases: pcapkit.utilities.warnings.BaseWarning, RuntimeWarning

Vendor failed during runtime.

pcapkit.utilities.warnings.warn(message, category, stacklevel=None)[source]

Wrapper function of warnings.warn().

Parameters
  • message (Union[str, Warning]) – Warning message.

  • category (Type[Warning]) – Warning category.

  • stacklevel (Optional[int]) – Warning stack level.