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>
14 lines
475 B
Python
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."""
|