mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 17:19:55 +08:00
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>
29 lines
584 B
Python
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
|