gscrib.excepts

G-code generation specific error handling.

This module defines a collection of exceptions to handle errors related to G-code processing and generation.

exception gscrib.excepts.CoolantStateError

Bases: GCodeError

Exception raised for inconsistent coolant state errors.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.DeviceConnectionError

Bases: DeviceError

Raised when a device connection fails.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.DeviceError

Bases: GscribError

Base exception for device-related errors.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.DeviceTimeoutError

Bases: DeviceError

Raised when a device operation times out.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.DeviceWriteError

Bases: DeviceError

Raised when a sending data to a device fails.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.FileLoadError

Bases: GscribError

Exception raised when a file cannot be loaded.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.GCodeError

Bases: GscribError

Base exception for G-code related errors.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.GscribError

Bases: Exception

Base exception for all Gscrib errors.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.ImageLoadError

Bases: GscribError

Exception raised when an image file cannot be loaded.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception gscrib.excepts.ToolStateError

Bases: GCodeError

Exception raised for inconsistent tool state errors.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args