You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_workflow_exc.py 643B

1234567891011121314151617181920
  1. """All these exceptions are not meant to be caught by callers."""
  2. class WorkflowDataError(Exception):
  3. """Base class for all workflow data related exceptions.
  4. This should be used to indicate issues with workflow data integrity, such as
  5. no `graph` configuration, missing `nodes` field in `graph` configuration, or
  6. similar issues.
  7. """
  8. pass
  9. class NodeNotFoundError(WorkflowDataError):
  10. """Raised when a node with the specified ID is not found in the workflow."""
  11. def __init__(self, node_id: str):
  12. super().__init__(f"Node with ID '{node_id}' not found in the workflow.")
  13. self.node_id = node_id