virtual_knitting_machine.knitting_machine_warnings.Knitting_Machine_Warning module
A module containing the base class for knitting machine warnings. This module provides the foundational warning class that all knitting machine-specific warnings inherit from, standardizing warning message formatting and handling behavior across the virtual knitting machine system.
- exception Knitting_Machine_Warning(message, ignore_instructions=False)[source]
Bases:
RuntimeWarning
Base class for warnings about the state of the knitting machine that can be handled gracefully. This class provides standardized warning message formatting and supports configurable instruction ignoring behavior for different types of machine state issues.
- __init__(message, ignore_instructions=False)[source]
Initialize a knitting machine warning with formatted message.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.