arcade-mcp/toolkits/asana/arcade_asana/exceptions.py
2025-05-12 14:59:52 -03:00

14 lines
448 B
Python

from arcade.sdk.errors import ToolExecutionError
class AsanaToolExecutionError(ToolExecutionError):
pass
class PaginationTimeoutError(AsanaToolExecutionError):
def __init__(self, timeout_seconds: int, tool_name: str):
message = f"Pagination timed out after {timeout_seconds} seconds"
super().__init__(
message=message,
developer_message=f"{message} while calling the tool {tool_name}",
)