knit_graphs.knit_graph_errors.knit_graph_error module
Module containing the base class for KnitGraphErrors
- exception KnitGraphError(message: str = '')[source]
Bases:
ExceptionBase class for KnitGraphErrors
- 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.
- exception Use_Cut_Yarn_ValueError(yarn: Yarn)[source]
Bases:
KnitGraphError,ValueErrorException for attempting to use yarn that has been cut from its carrier. This exception occurs when trying to perform knitting operations with yarn that has been severed from its carrier, making it impossible to continue yarn operations as the yarn is no longer connected to the carrier system.
- __init__(yarn: Yarn) None[source]
Initialize a cut yarn usage exception.
- Parameters:
yarn (Yarn) – The cut yarn that was used.
- 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.