errors2
errors2
¶
Base error classes used in this module.
Parser2Error
¶
Bases: ValueError
Base class for parser errors.
Exceptions derived from this exception are exclusively raised in PyGerber's Gerber
X3 Parser. This exception can be used in
try: ... except Parser2Error: ...
block to catch all exceptions
raised by Parser while allowing other exceptions to interrupt execution.
Source code in src/pygerber/gerberx3/parser2/errors2.py
ZeroOmissionNotSupported2Error
¶
Bases: Parser2Error
Raised when incremental coordinates are selected. (Spec. 8.2.1.2).
IncrementalCoordinatesNotSupported2Error
¶
Bases: Parser2Error
Raised when incremental coordinates are selected. (Spec. 8.2.1.2).
UnsupportedCoordinateType2Error
¶
Bases: Parser2Error
Raised for unsupported coordinate types.
InvalidCoordinateLength2Error
¶
Bases: Parser2Error
Raised when coordinate string is too long.
ParserFatal2Error
¶
Bases: Parser2Error
Raised when parser encounters fatal failure from non-parser specific exception.
OnUpdateDrawingState2Error
¶
Bases: Parser2Error
Raised when parser encounters fatal failure from non-parser specific exception during call to .update_drawing_state() call.
Source code in src/pygerber/gerberx3/parser2/errors2.py
UnitNotSet2Error
¶
Bases: Parser2Error
Raised when operation which requires units to be set is executed before units are set.
ReferencedNotInitializedBlockBufferError
¶
Bases: Parser2Error
Raised when Gerber file references block buffer which has not been initialized, ie. when block aperture was not correctly started.
UnnamedBlockApertureNotAllowedError
¶
Bases: Parser2Error
Raised when aperture block with no ID is encountered.
RegionNotInitializedError
¶
Bases: Parser2Error
Raised when region is modified without being accessed without initialization.
ApertureNotDefined2Error
¶
Bases: Parser2Error
Raised when undefined aperture is selected.
MacroNotDefinedError
¶
Bases: Parser2Error
Raised when undefined macro is referenced.
NoValidArcCenterFoundError
¶
Bases: Parser2Error
Raised when no valid arc center point can not be deduced from IJ offset in single quadrant mode (G74).
CoordinateFormatNotSet2Error
¶
Bases: Parser2Error
Raised when coordinate parser is requested before coordinate format was set.
ApertureNotSelected2Error
¶
Bases: Parser2Error
Raised when attempting to use aperture without selecting it first.
StepAndRepeatNotInitializedError
¶
Bases: Parser2Error
Raised when step and repeat block is closed without being correctly opened.
MacroNotInitializedError
¶
Bases: Parser2Error
Raised when macro statement buffer is requested without being correctly initialized.
StandardAttributeError
¶
Bases: Parser2Error
Raised when parser encounters an error while processing a standard attribute.
MissingNameFieldError
¶
Bases: StandardAttributeError
Raised when a missing name field is detected.
MissingGuidFieldError
¶
Bases: StandardAttributeError
Raised when a missing name field is detected.
MissingRevisionFieldError
¶
Bases: StandardAttributeError
Raised when a missing name field is detected.