scapy.error¶
Logging subsystem and basic exception class.
-
class
scapy.error.
ScapyColoredFormatter
(fmt=None, datefmt=None, style='%', validate=True)¶ Bases:
logging.Formatter
A subclass of logging.Formatter that handles colors.
-
format
(record)¶
-
levels_colored
= {'CRITICAL': 'bold+white+bg_red', 'DEBUG': 'reset', 'ERROR': 'bold+red', 'INFO': 'reset', 'WARNING': 'bold+yellow'}¶
-
-
exception
scapy.error.
ScapyInvalidPlatformException
¶ Bases:
scapy.error.Scapy_Exception
-
exception
scapy.error.
ScapyNoDstMacException
¶ Bases:
scapy.error.Scapy_Exception
-
exception
scapy.error.
Scapy_Exception
¶ Bases:
Exception
-
scapy.error.
warning
(x, *args, **kargs)¶ Prints a warning during runtime.