Skip to content

Errors

WorkflowValidationError #

Bases: Exception

Raised when the workflow configuration or step signatures are invalid.

Source code in workflows/errors.py
7
8
class WorkflowValidationError(Exception):
    """Raised when the workflow configuration or step signatures are invalid."""

WorkflowTimeoutError #

Bases: Exception

Raised when a workflow run exceeds the configured timeout.

Source code in workflows/errors.py
11
12
class WorkflowTimeoutError(Exception):
    """Raised when a workflow run exceeds the configured timeout."""

WorkflowRuntimeError #

Bases: Exception

Raised for runtime errors during step execution or event routing.

Source code in workflows/errors.py
15
16
class WorkflowRuntimeError(Exception):
    """Raised for runtime errors during step execution or event routing."""

WorkflowDone #

Bases: Exception

Internal control-flow exception used to terminate workers at run end.

Source code in workflows/errors.py
19
20
class WorkflowDone(Exception):
    """Internal control-flow exception used to terminate workers at run end."""

WorkflowCancelledByUser #

Bases: Exception

Raised when a run is cancelled via the handler or programmatically.

Source code in workflows/errors.py
23
24
class WorkflowCancelledByUser(Exception):
    """Raised when a run is cancelled via the handler or programmatically."""

WorkflowStepDoesNotExistError #

Bases: Exception

Raised when addressing a step that does not exist in the workflow.

Source code in workflows/errors.py
27
28
class WorkflowStepDoesNotExistError(Exception):
    """Raised when addressing a step that does not exist in the workflow."""

WorkflowConfigurationError #

Bases: Exception

Raised when a logical configuration error is detected pre-run.

Source code in workflows/errors.py
31
32
class WorkflowConfigurationError(Exception):
    """Raised when a logical configuration error is detected pre-run."""

ContextSerdeError #

Bases: Exception

Raised when serializing/deserializing a Context fails.

Source code in workflows/errors.py
35
36
class ContextSerdeError(Exception):
    """Raised when serializing/deserializing a `Context` fails."""

ContextStateError #

Bases: Exception

Raised when a context method is called in the wrong state.

Context transitions between three states: - PreContext: Before workflow starts (configuration) - ExternalContext: During run, for handler/external code - InternalContext: During run, for step execution

Source code in workflows/errors.py
39
40
41
42
43
44
45
46
class ContextStateError(Exception):
    """Raised when a context method is called in the wrong state.

    Context transitions between three states:
    - PreContext: Before workflow starts (configuration)
    - ExternalContext: During run, for handler/external code
    - InternalContext: During run, for step execution
    """