Skip to content

_errors

Errors which may be called by API layer.

GerberX3APIError

Bases: Exception

Base class for API errors.

Exceptions derived from this exception are exclusively raised in PyGerber's Gerber X3 high level API. This exception can be used in try: ... except GerberX3APIError: ... block to catch all exceptions raised by this API while allowing other exceptions to interrupt execution.

PathToGerberJobProjectNotDefinedError

Bases: GerberX3APIError

Raised when path to Gerber Job project is not defined.