virtual_knitting_machine.knitting_machine_exceptions.racking_errors module
Module containing exceptions raised that involve racking operations and constraints. This module provides exception classes for racking-related critical errors including attempts to exceed the machine’s maximum racking capabilities, which would cause physical damage or operational failures on real knitting machines.
- exception Max_Rack_Exception(racking, max_rack)[source]
Bases:
Knitting_Machine_Exception
Exception for racking operations that exceed the machine’s maximum racking capability. This exception occurs when attempting to set a racking value that exceeds the physical limitations of the knitting machine, preventing potential mechanical damage and ensuring operation within safe parameters.
- 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.