mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-23 06:09:43 +08:00

Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: Yi <yxiaoisme@gmail.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
9 lines
315 B
Python
9 lines
315 B
Python
from core.workflow.nodes.base_node import BaseNode
|
|
|
|
|
|
class WorkflowNodeRunFailedError(Exception):
|
|
def __init__(self, node_instance: BaseNode, error: str):
|
|
self.node_instance = node_instance
|
|
self.error = error
|
|
super().__init__(f"Node {node_instance.node_data.title} run failed: {error}")
|