mirror of
https://github.com/langgenius/dify.git
synced 2026-03-28 05:00:59 -04:00
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
|