
    'jt                         d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z G d de          Z	dS )z%Errors that can be raised by this SDKc                       e Zd ZdZdS )SlackClientErrorzBase class for Client errorsN__name__
__module____qualname____doc__     Z/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/slack_sdk/errors/__init__.pyr   r      s        &&&&r
   r   c                       e Zd ZdZdS )BotUserAccessErrorztError raised when an 'xoxb-*' token is
    being used for a Slack API method that only accepts 'xoxp-*' tokens.
    Nr   r	   r
   r   r   r      s           r
   r   c                       e Zd ZdZdS )SlackRequestErrorzLError raised when there's a problem with the request that's being submitted.Nr   r	   r
   r   r   r      s        VVVVr
   r   c                   "     e Zd ZdZ fdZ xZS )SlackApiErrora  Error raised when Slack does not send the expected response.

    Attributes:
        response (SlackResponse): The SlackResponse object containing all of the data sent back from the API.

    Note:
        The message (str) passed into the exception is used when
        a user converts the exception to a str.
        i.e. str(SlackApiError("This text will be sent as a string."))
    c                 t    | d| }|| _         t          t          |                               |           d S )Nz
The server responded with: )responsesuperr   __init__)selfmessager   msg	__class__s       r   r   zSlackApiError.__init__   sA    AAxAA mT""++C00000r
   )r   r   r   r   r   __classcell__)r   s   @r   r   r      sB        	 	1 1 1 1 1 1 1 1 1r
   r   c                   *    e Zd ZU dZeed<   defdZdS )SlackTokenRotationErrorzCError raised when the oauth.v2.access call for token rotation fails	api_errorc                     || _         d S )N)r   )r   r   s     r   r   z SlackTokenRotationError.__init__)   s    "r
   N)r   r   r   r   r   __annotations__r   r	   r
   r   r   r   $   sC         MM#- # # # # # #r
   r   c                       e Zd ZdZdS )SlackClientNotConnectedErrorzcError raised when attempting to send messages over the websocket when the
    connection is closed.Nr   r	   r
   r   r!   r!   -   s           r
   r!   c                       e Zd ZdZdS )SlackObjectFormationErrorz=Error raised when a constructed object is not valid/malformedNr   r	   r
   r   r#   r#   2   s        GGGGr
   r#   c                       e Zd ZdZdS )SlackClientConfigurationErrorzError raised because of invalid configuration on the client side:
    * when attempting to send messages over the websocket when the connection is closed.
    * when external system (e.g., Amazon S3) configuration / credentials are not correct
    Nr   r	   r
   r   r%   r%   6   s           r
   r%   N)
r   	Exceptionr   r   r   r   r   r!   r#   r%   r	   r
   r   <module>r'      s|   + +' ' ' ' 'y ' ' '    )   W W W W W( W W W1 1 1 1 1$ 1 1 1$# # # # #. # # #    #3   
H H H H H 0 H H H    $4     r
   