跳转到内容

错误

工作流验证错误 #

基类:Exception

当工作流配置或步骤签名无效时引发。

workflows/errors.py中的源代码
5
6
class WorkflowValidationError(Exception):
    """Raised when the workflow configuration or step signatures are invalid."""

工作流超时错误 #

基类:Exception

当工作流运行超过配置的超时时间时触发。

workflows/errors.py中的源代码
 9
10
class WorkflowTimeoutError(Exception):
    """Raised when a workflow run exceeds the configured timeout."""

工作流运行时错误 #

基类:Exception

在执行步骤或事件路由期间出现运行时错误时引发。

workflows/errors.py中的源代码
13
14
class WorkflowRuntimeError(Exception):
    """Raised for runtime errors during step execution or event routing."""

工作流完成 #

基类:Exception

用于在运行结束时终止工作者的内部控制流异常。

workflows/errors.py中的源代码
17
18
class WorkflowDone(Exception):
    """Internal control-flow exception used to terminate workers at run end."""

工作流程被用户取消 #

基类:Exception

当通过处理程序或以编程方式取消运行时引发。

workflows/errors.py 中的源代码
21
22
class WorkflowCancelledByUser(Exception):
    """Raised when a run is cancelled via the handler or programmatically."""

工作流步骤不存在错误 #

基类:Exception

当在工作流中处理不存在的步骤时引发。

workflows/errors.py中的源代码
25
26
class WorkflowStepDoesNotExistError(Exception):
    """Raised when addressing a step that does not exist in the workflow."""

工作流配置错误 #

基类:Exception

在运行前检测到逻辑配置错误时引发。

workflows/errors.py中的源代码
29
30
class WorkflowConfigurationError(Exception):
    """Raised when a logical configuration error is detected pre-run."""

上下文序列化错误 #

基类:ExceptionException

在序列化/反序列化 Context 失败时触发。

workflows/errors.py中的源代码
33
34
class ContextSerdeError(Exception):
    """Raised when serializing/deserializing a `Context` fails."""