virtual_knitting_machine.knitting_machine_exceptions.Knitting_Machine_Exception module
Module containing the base class for knitting machine exceptions. This module provides the foundational exception class that all knitting machine-specific exceptions inherit from, standardizing error message formatting and handling behavior across the virtual knitting machine system for critical error states.
- exception Knitting_Machine_Exception(message)[source]
Bases:
Exception
Superclass for all exceptions that would put the virtual knitting machine in an error state. This class provides standardized exception message formatting and serves as the base for all machine-specific exceptions that indicate critical operational failures requiring immediate attention and program termination.
- Parameters:
message (
str
)
- __init__(message)[source]
Initialize a knitting machine exception with formatted message.
- Parameters:
message (str) – The descriptive error message about the machine state or operation failure.
- 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.