dify / api /core /workflow /errors.py
Severian's picture
initial commit
a8b3f00
raw
history blame
310 Bytes
from core.workflow.nodes.base 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}")