Skip to content

errors2

errors2

Module contains exceptions raised by rendering backends.

Renderer2Error

Bases: Exception

Base class for exceptions raised by rendering backends.

Source code in src/pygerber/gerberx3/renderer2/errors2.py
class Renderer2Error(Exception):
    """Base class for exceptions raised by rendering backends."""

SvgRenderer2Error

Bases: Renderer2Error

Error raised by SVG rendering backend.

Source code in src/pygerber/gerberx3/renderer2/errors2.py
class SvgRenderer2Error(Renderer2Error):
    """Error raised by SVG rendering backend."""

DRAWSVGNotAvailableError

Bases: SvgRenderer2Error

Raised when drawsvg can't be imported, probably because it was not installed.

You can install it with pip install pygerber[svg].

Source code in src/pygerber/gerberx3/renderer2/errors2.py
class DRAWSVGNotAvailableError(SvgRenderer2Error):
    """Raised when `drawsvg` can't be imported, probably because it was not installed.

    You can install it with `pip install pygerber[svg]`.
    """