arcade-mcp/toolkits/slack/arcade_slack/exceptions.py
Eric Gustin 66e54d7cde
Slack Tools (#162)
implements additional tools for Slack related to retrieving
conversations metadata, list of members, history of messages, as well as
sending messages to private/public channels and DMs / multi-person DMs.

---------

Co-authored-by: Eric Gustin <eric@arcade-ai.com>
Co-authored-by: Renato Byrro <rmbyrro@gmail.com>
2025-01-23 18:15:52 -08:00

14 lines
475 B
Python

class SlackToolkitError(Exception):
"""Base class for all Slack toolkit errors."""
class PaginationTimeoutError(SlackToolkitError):
"""Raised when a timeout occurs during pagination."""
def __init__(self, timeout_seconds: int):
self.timeout_seconds = timeout_seconds
super().__init__(f"The pagination process timed out after {timeout_seconds} seconds.")
class ItemNotFoundError(SlackToolkitError):
"""Raised when an item is not found."""