Skip to content

errors

errors #

Errors raised by the authoring surface.

These are the only exceptions the recorder raises for authoring mistakes (as opposed to a node's own construction-time type error, which is a plain TypeError).

AlreadyAssignedError #

Bases: AuthoringError

Raised when the same path is cached more than once in one procedure.

Source code in capturegraph-lib/capturegraph/procedures/procedure/authoring/errors.py
class AlreadyAssignedError(AuthoringError):
    """Raised when the same path is cached more than once in one procedure."""

AuthoringError #

Bases: RuntimeError

Raised for misuse of the authoring surface.

The base for every recorder-specific error — e.g. constructing a node with no surrounding ProcedureContext.

Source code in capturegraph-lib/capturegraph/procedures/procedure/authoring/errors.py
class AuthoringError(RuntimeError):
    """Raised for misuse of the authoring surface.

    The base for every recorder-specific error — e.g. constructing a node with no
    surrounding
    [ProcedureContext][capturegraph.procedures.procedure.authoring.contexts.base.ProcedureContext].
    """

UncaughtDataError #

Bases: AuthoringError

Raised when a step produces a value that is never stored or consumed.

Every leftover root of a context must be a side effect (return Void). A bare cg.CaptureImage() that is neither cached with |= / &= nor passed to another node leaves its value dangling — that is this error.

Source code in capturegraph-lib/capturegraph/procedures/procedure/authoring/errors.py
class UncaughtDataError(AuthoringError):
    """Raised when a step produces a value that is never stored or consumed.

    Every leftover root of a context must be a side effect (return ``Void``). A
    bare ``cg.CaptureImage()`` that is neither cached with ``|=`` / ``&=`` nor
    passed to another node leaves its value dangling — that is this error.
    """