Files
dify/api/dify_graph/nodes/tool/exc.py
-LAN- 56593f20b0 refactor(api): continue decoupling dify_graph from API concerns (#33580)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-03-25 20:32:24 +08:00

29 lines
584 B
Python

class ToolNodeError(ValueError):
"""Base exception for tool node errors."""
pass
class ToolRuntimeResolutionError(ToolNodeError):
"""Raised when the workflow layer cannot construct a tool runtime."""
pass
class ToolRuntimeInvocationError(ToolNodeError):
"""Raised when the workflow layer fails while invoking a tool runtime."""
pass
class ToolParameterError(ToolNodeError):
"""Exception raised for errors in tool parameters."""
pass
class ToolFileError(ToolNodeError):
"""Exception raised for errors related to tool files."""
pass